(date) @field
(txn) @attribute
(account) @type
(amount) @number
(incomplete_amount) @number
(compound_amount) @number
(amount_tolerance) @number
(currency) @property
(key) @label
(string) @string @spell
(narration) @string @spell
(payee) @string @spell
(tag) @constant
(link) @constant
[
 (minus) (plus) (slash) (asterisk)
] @operator
(comment) @comment @spell
[
    (balance) (open) (close) (commodity) (pad)
    (event) (price) (note) (document) (query)
    (custom) (pushtag) (poptag) (pushmeta)
    (popmeta) (option) (include) (plugin)
] @keyword