add support for beancount files

This commit is contained in:
Brian Ryall 2021-03-21 13:26:33 -04:00 committed by Thomas Vigouroux
parent 0c12ff67fe
commit fb75f01941
4 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,3 @@
[
(transaction)
] @fold

View file

@ -0,0 +1,26 @@
(date) @field
(txn) @annotation
(account) @type
(amount) @number
(incomplete_amount) @number
(amount_tolerance) @number
(currency) @property
(key) @label
(string) @string
(tag) @constant
(link) @constant
(comment) @comment
[
(BALANCE) (OPEN) (CLOSE) (COMMODITY) (PAD)
(EVENT) (PRICE) (NOTE) (DOCUMENT) (QUERY)
(CUSTOM) (PUSHTAG) (POPTAG) (PUSHMETA)
(POPMETA) (OPTION) (INCLUDE) (PLUGIN)
] @keyword

View file

@ -0,0 +1,3 @@
(transaction
(date) @definition.date
(txn_strings) @definition.payee) @definition.transaction