Skip to content

cbarrete/tree-sitter-ledger

Repository files navigation

tree-sitter-ledger

A ledger parser built with tree-sitter.

Note for nvim-treesitter users

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.

Note for integration maintainers

I also maintain the ledger queries in nvim-treesitter. Consider consulting them for hints about what tree-sitter-ledger exposes.

About

Ledger grammar for tree-sitter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published