A ledger parser built with tree-sitter.
negative_quantity
is exposed by tree-sitter-ledger, but not treated specially
in nvim-treesitter. You can add special highlighting for it (e.g. to highlight
negative quantities in red) by runnning :TSEditQueryUserAfter
and filling in
something like:
;; extends
((negative_quantity) @some_capture)
where @some_capture
should map to some highlight group in your colorscheme.
I also maintain the ledger queries in nvim-treesitter. Consider consulting them for hints about what tree-sitter-ledger exposes.