Debian Codegraph @

runtime/syntax/ledger.yaml

raw
1 filetype: ledger
2
3 detect:
4 filename: "(^|\\.|/)(ledger|ldgr|beancount|bnct)$"
5
6 rules:
7 - special: "^([0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}|[=~]) .*"
8 - constant: "^[0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}"
9 - statement: "^~ .*"
10 - identifier.var: "^= .*"
11 - identifier: "^[[:space:]]+(![[:space:]]+)?\\(?[A-Za-z ]+(:[A-Za-z ]+)*\\)?"
12 - identifier: "^[[:space:]]+(![[:space:]]+)?\\(?[A-Za-z_\\-]+(:[A-Za-z_\\-]+)*\\)?"
13 - symbol: "[*!]"
14 - comment: "^[[:space:]]*;.*"