diff options
Diffstat (limited to 'runtime/queries/hoon')
| -rw-r--r-- | runtime/queries/hoon/folds.scm | 6 | ||||
| -rw-r--r-- | runtime/queries/hoon/highlights.scm | 35 | ||||
| -rw-r--r-- | runtime/queries/hoon/injections.scm | 2 | ||||
| -rw-r--r-- | runtime/queries/hoon/locals.scm | 4 |
4 files changed, 47 insertions, 0 deletions
diff --git a/runtime/queries/hoon/folds.scm b/runtime/queries/hoon/folds.scm new file mode 100644 index 000000000..cfb4b6d0c --- /dev/null +++ b/runtime/queries/hoon/folds.scm @@ -0,0 +1,6 @@ +[ + (bartisTall) + (luslusTall) + (lusbucTall) + (barcenTall) +] @fold diff --git a/runtime/queries/hoon/highlights.scm b/runtime/queries/hoon/highlights.scm new file mode 100644 index 000000000..90ac87217 --- /dev/null +++ b/runtime/queries/hoon/highlights.scm @@ -0,0 +1,35 @@ +(number) @number + +(string) @string + +[ + "(" + ")" + "[" + "]" +] @punctuation.bracket + +[ + (coreTerminator) + (seriesTerminator) +] @punctuation.delimiter + +(rune) @operator + +(term) @constant + +(aura) @constant.builtin + +(lineComment) @comment + +(boolean) @constant.builtin + +(date) @string.special + +(mold) @string.special.symbol + +(specialIndex) @number + +(lark) @operator + +(fullContext) @string.special.symbol diff --git a/runtime/queries/hoon/injections.scm b/runtime/queries/hoon/injections.scm new file mode 100644 index 000000000..a004ba0b4 --- /dev/null +++ b/runtime/queries/hoon/injections.scm @@ -0,0 +1,2 @@ +((lineComment) @injection.content + (#set! injection.language "comment")) diff --git a/runtime/queries/hoon/locals.scm b/runtime/queries/hoon/locals.scm new file mode 100644 index 000000000..fd7cc026d --- /dev/null +++ b/runtime/queries/hoon/locals.scm @@ -0,0 +1,4 @@ +(tisfasTall + name: (name) @local.definition.var) + +(name) @local.reference |
