mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 07:20:06 -04:00
Add ledger parser, folds and highlights queries
This commit is contained in:
parent
32e39094b9
commit
459173e5c7
5 changed files with 31 additions and 0 deletions
3
queries/ledger/folds.scm
Normal file
3
queries/ledger/folds.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[
|
||||
(xact)
|
||||
] @fold
|
||||
16
queries/ledger/highlights.scm
Normal file
16
queries/ledger/highlights.scm
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
((comment) @comment)
|
||||
|
||||
((date) @number)
|
||||
((account) @variable)
|
||||
((note) @comment)
|
||||
((amount_expr) @keyword)
|
||||
((quantity) @number)
|
||||
((commodity) @string)
|
||||
|
||||
"include" @include
|
||||
|
||||
[
|
||||
"account"
|
||||
"end"
|
||||
"def"
|
||||
] @keyword
|
||||
Loading…
Add table
Add a link
Reference in a new issue