Add converted syntax files

This commit is contained in:
Zachary Yedidia
2017-03-21 14:55:22 -04:00
parent fa7f89a400
commit b977bf5cca
104 changed files with 1807 additions and 1233 deletions

View File

@@ -0,0 +1,14 @@
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:]]*;.*"