summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/beancount/folds.scm4
-rw-r--r--runtime/queries/beancount/highlights.scm49
2 files changed, 53 insertions, 0 deletions
diff --git a/runtime/queries/beancount/folds.scm b/runtime/queries/beancount/folds.scm
new file mode 100644
index 00000000..9f1b6cbe
--- /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 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 "^\\*"))