From 692b051b09935653befdb8f7ba8afdb640adf17b Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 12 Jun 2023 09:54:30 -0600 Subject: feat!: drop modules, general refactor and cleanup --- runtime/queries/beancount/folds.scm | 4 +++ runtime/queries/beancount/highlights.scm | 57 ++++++++++++++++++++++++++++++++ runtime/queries/beancount/injections.scm | 5 +++ 3 files changed, 66 insertions(+) create mode 100644 runtime/queries/beancount/folds.scm create mode 100644 runtime/queries/beancount/highlights.scm create mode 100644 runtime/queries/beancount/injections.scm (limited to 'runtime/queries/beancount') diff --git a/runtime/queries/beancount/folds.scm b/runtime/queries/beancount/folds.scm new file mode 100644 index 000000000..9f1b6cbed --- /dev/null +++ b/runtime/queries/beancount/folds.scm @@ -0,0 +1,4 @@ +[ + (transaction) + (section) +] @fold diff --git a/runtime/queries/beancount/highlights.scm b/runtime/queries/beancount/highlights.scm new file mode 100644 index 000000000..1e23d28f4 --- /dev/null +++ b/runtime/queries/beancount/highlights.scm @@ -0,0 +1,57 @@ +(date) @variable.member + +(txn) @attribute + +(account) @type + +(amount) @number + +(incomplete_amount) @number + +(compound_amount) @number + +(amount_tolerance) @number + +(currency) @property + +(key) @label + +(string) @string + +(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 diff --git a/runtime/queries/beancount/injections.scm b/runtime/queries/beancount/injections.scm new file mode 100644 index 000000000..05aa24d8f --- /dev/null +++ b/runtime/queries/beancount/injections.scm @@ -0,0 +1,5 @@ +((comment) @injection.content + (#set! injection.language "comment")) + +((macro_text) @injection.content + (#set! injection.language "verilog")) -- cgit v1.2.3-70-g09d2