micro/runtime/syntax/ledger.yaml
Yevhen Babiichuk (DustDFG) 426e6c600f
Fix trailing spaces/tabs in yaml syntax files (#3200)
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
2024-03-22 17:56:09 +01:00

15 lines
486 B
YAML

filetype: ledger
detect:
filename: "(^|\\.|/)(ledger|ldgr|beancount|bnct)$"
rules:
- special: "^([0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}|[=~]) .*"
- constant: "^[0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}"
- statement: "^~ .*"
- identifier.var: "^= .*"
- identifier: "^[[:space:]]+(![[:space:]]+)?\\(?[A-Za-z ]+(:[A-Za-z ]+)*\\)?"
- identifier: "^[[:space:]]+(![[:space:]]+)?\\(?[A-Za-z_\\-]+(:[A-Za-z_\\-]+)*\\)?"
- symbol: "[*!]"
- comment: "^[[:space:]]*;.*"