diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-06-12 09:54:30 -0600 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | 692b051b09935653befdb8f7ba8afdb640adf17b (patch) | |
| tree | 167162b6b129ae04f68c5735078521a72917c742 /runtime/queries/hoon | |
| parent | feat(c-family): inherit injections (diff) | |
| download | nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2 nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip | |
feat!: drop modules, general refactor and cleanup
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 |
