]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/ledger.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / ledger.yaml
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:]]*;.*"