imp: journal: ignore tag subdirectives (ledger compat)

This commit is contained in:
Simon Michael 2022-12-22 00:34:33 -10:00
parent c58b9e6ac9
commit fb7134c9a0
3 changed files with 5 additions and 0 deletions

View File

@ -578,6 +578,7 @@ tagdirectivep = do
lift skipNonNewlineSpaces1
_ <- lift $ some nonspace
lift restofline
skipMany indentedlinep
return ()
endtagdirectivep :: JournalParser m ()

View File

@ -2749,6 +2749,7 @@ capture ACCT REGEX
check EXPR
define VAR=EXPR
expr EXPR
tag NAME
--command-line-flag
```

View File

@ -55,6 +55,9 @@ check 1
define var_name=$100
expr 1
N USD
tag Receipt
check value =~ /pattern/
assert value != "foobar"
--command-line-flag
$ hledger -f- check