diff options
author | Ivan Tham | 2021-08-16 02:03:57 +0000 |
---|---|---|
committer | GitHub | 2021-08-16 02:03:57 +0000 |
commit | aaccc9419a9710f13db3ddc0aad068e606667154 (patch) | |
tree | 9817e3d6937efba5055fd77cd3da310e84d907b7 /runtime/queries | |
parent | 3bde65c599707d7448c36dee26848b0ed48b0fe4 (diff) |
Add ledger tree-sitter (#572)
Might need to update later since the current one highlight does not
work very well yet.
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/ledger/highlights.scm | 38 | ||||
-rw-r--r-- | runtime/queries/ledger/injections.scm | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/runtime/queries/ledger/highlights.scm b/runtime/queries/ledger/highlights.scm new file mode 100644 index 00000000..86c609c2 --- /dev/null +++ b/runtime/queries/ledger/highlights.scm @@ -0,0 +1,38 @@ +[ + (comment) + (note) +] @comment + +[ + (date) + (interval) + (quantity) +] @number + +((account) @field) +((commodity) @text.literal) + +"include" @include + +[ + "account" + "alias" + "assert" + "check" + "commodity" + "def" + "default" + "end" + "eval" + "format" + "nomarket" + "note" + "payee" + "check" + "A" + "Y" + "N" + "D" + "C" + "P" +] @keyword diff --git a/runtime/queries/ledger/injections.scm b/runtime/queries/ledger/injections.scm new file mode 100644 index 00000000..4bb7d675 --- /dev/null +++ b/runtime/queries/ledger/injections.scm @@ -0,0 +1 @@ +(comment) @comment |