aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/hoon/folds.scm6
-rw-r--r--queries/hoon/highlights.scm33
-rw-r--r--queries/hoon/locals.scm4
3 files changed, 43 insertions, 0 deletions
diff --git a/queries/hoon/folds.scm b/queries/hoon/folds.scm
new file mode 100644
index 000000000..93d1386e7
--- /dev/null
+++ b/queries/hoon/folds.scm
@@ -0,0 +1,6 @@
+[
+ (bartisTall)
+ (luslusTall)
+ (lusbucTall)
+ (barcenTall)
+ ] @fold
diff --git a/queries/hoon/highlights.scm b/queries/hoon/highlights.scm
new file mode 100644
index 000000000..f7136f63e
--- /dev/null
+++ b/queries/hoon/highlights.scm
@@ -0,0 +1,33 @@
+(number) @number
+
+(string) @string
+
+[
+ "("
+ ")"
+ "["
+ "]"
+] @punctuation.bracket
+
+[
+ (coreTerminator)
+ (seriesTerminator)
+] @punctuation.delimiter
+
+
+(rune) @operator
+
+(term) @constant
+
+(aura) @constant.builtin
+
+(Gap) @comment
+
+(boolean) @constant.builtin
+
+(date) @string.special
+
+(mold) @symbol
+(specialIndex) @number.builtin
+(lark) @operator
+(fullContext) @symbol
diff --git a/queries/hoon/locals.scm b/queries/hoon/locals.scm
new file mode 100644
index 000000000..159783fd0
--- /dev/null
+++ b/queries/hoon/locals.scm
@@ -0,0 +1,4 @@
+(tisfasTall
+ name: (name) @definition.var)
+
+(name) @reference