diff options
| author | urbit-pilled <129720764+urbit-pilled@users.noreply.github.com> | 2023-06-30 11:26:44 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-29 19:26:44 -0400 |
| commit | 04dda34cb75018399d8a0a688ea10eb4de889eeb (patch) | |
| tree | 096280495cb530faa8c952c824e138a9f9446b98 /queries/hoon | |
| parent | feat(sql): json operator highlights (diff) | |
| download | nvim-treesitter-04dda34cb75018399d8a0a688ea10eb4de889eeb.tar nvim-treesitter-04dda34cb75018399d8a0a688ea10eb4de889eeb.tar.gz nvim-treesitter-04dda34cb75018399d8a0a688ea10eb4de889eeb.tar.bz2 nvim-treesitter-04dda34cb75018399d8a0a688ea10eb4de889eeb.tar.lz nvim-treesitter-04dda34cb75018399d8a0a688ea10eb4de889eeb.tar.xz nvim-treesitter-04dda34cb75018399d8a0a688ea10eb4de889eeb.tar.zst nvim-treesitter-04dda34cb75018399d8a0a688ea10eb4de889eeb.zip | |
feat: add Hoon language support
---------
Co-authored-by: urbit-pilled <urbit-pilled>
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
Diffstat (limited to 'queries/hoon')
| -rw-r--r-- | queries/hoon/folds.scm | 6 | ||||
| -rw-r--r-- | queries/hoon/highlights.scm | 33 | ||||
| -rw-r--r-- | queries/hoon/locals.scm | 4 |
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 |
