From 4ce5a94552d887b9b14000dfdd1abe76a6d5f315 Mon Sep 17 00:00:00 2001 From: Kyle L. Davis Date: Mon, 8 Aug 2022 17:59:55 -0500 Subject: Add language: beancount (#3297) Co-authored-by: erasin Co-authored-by: Michael Davis Co-authored-by: Erasin --- runtime/queries/beancount/highlights.scm | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 runtime/queries/beancount/highlights.scm (limited to 'runtime/queries/beancount/highlights.scm') diff --git a/runtime/queries/beancount/highlights.scm b/runtime/queries/beancount/highlights.scm new file mode 100644 index 00000000..440a5782 --- /dev/null +++ b/runtime/queries/beancount/highlights.scm @@ -0,0 +1,49 @@ +(date) @variable.builtin +(txn) @variable.builtin + +(account) @type + +[ + (amount) + (incomplete_amount) + (amount_tolerance) + (number) +] @constant.numeric + + +[(key_value) (key)] @variable.other.member +(string) @string + +[ + (currency) + (tag) + (link) +] @constant + +(comment) @comment + +[ + (minus) + (plus) +] @operator + +[ + (balance) (open) (close) (commodity) (pad) + (event) (price) (note) (document) (query) + (custom) (pushtag) (poptag) (pushmeta) + (popmeta) (option) (include) (plugin) +] @keyword + + +((headline item: (item) @markup.heading.6) @markup.heading.marker + (#match? @markup.heading.marker "^\\*\\*\\*\\*\\*\\*")) +((headline item: (item) @markup.heading.5) @markup.heading.marker + (#match? @markup.heading.marker "^\\*\\*\\*\\*\\*")) +((headline item: (item) @markup.heading.4) @markup.heading.marker + (#match? @markup.heading.marker "^\\*\\*\\*\\*")) +((headline item: (item) @markup.heading.3) @markup.heading.marker + (#match? @markup.heading.marker "^\\*\\*\\*")) +((headline item: (item) @markup.heading.2) @markup.heading.marker + (#match? @markup.heading.marker "^\\*\\*")) +((headline item: (item) @markup.heading.1) @markup.heading.marker + (#match? @markup.heading.marker "^\\*")) -- cgit v1.2.3-70-g09d2