mirror of
https://github.com/zyedidia/micro.git
synced 2024-10-27 20:49:47 +03:00
773284369b
Fixes #783
15 lines
487 B
YAML
15 lines
487 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:]]*;.*"
|