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 /queries/koto | |
| 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 'queries/koto')
| -rw-r--r-- | queries/koto/folds.scm | 9 | ||||
| -rw-r--r-- | queries/koto/highlights.scm | 138 | ||||
| -rw-r--r-- | queries/koto/injections.scm | 2 | ||||
| -rw-r--r-- | queries/koto/locals.scm | 28 |
4 files changed, 0 insertions, 177 deletions
diff --git a/queries/koto/folds.scm b/queries/koto/folds.scm deleted file mode 100644 index d20d0120b..000000000 --- a/queries/koto/folds.scm +++ /dev/null @@ -1,9 +0,0 @@ -[ - (assign) - (comment) - (function) - (list) - (map) - (tuple) - (string) -] @fold diff --git a/queries/koto/highlights.scm b/queries/koto/highlights.scm deleted file mode 100644 index bd6ce8d0e..000000000 --- a/queries/koto/highlights.scm +++ /dev/null @@ -1,138 +0,0 @@ -[ - "=" - "+" - "-" - "*" - "/" - "%" - "+=" - "-=" - "*=" - "/=" - "%=" - "==" - "!=" - "<" - ">" - "<=" - ">=" - ".." - "..=" - "->" - (null_check) -] @operator - -"let" @keyword - -[ - "and" - "not" - "or" -] @keyword.operator - -[ - "return" - "yield" -] @keyword.return - -[ - "if" - "then" - "else" - "else if" - "match" - "switch" -] @keyword.conditional - -[ - (break) - (continue) - "for" - "in" - "loop" - "until" - "while" -] @keyword.repeat - -[ - "throw" - "try" - "catch" - "finally" -] @keyword.exception - -[ - "export" - "from" - "import" - "as" -] @keyword.import - -[ - "(" - ")" - "[" - "]" - "{" - "}" - "|" -] @punctuation.bracket - -(identifier) @variable - -(import_module - (identifier) @module) - -(import_item - (identifier) @module) - -(export - (identifier) @module) - -(chain - lookup: (identifier) @variable.member) - -(chain - start: (identifier) @function.call) - -[ - (true) - (false) -] @boolean - -(comment) @comment @spell - -(debug) @keyword.debug - -(string) @string - -(fill_char) @punctuation.delimiter - -(alignment) @operator - -(escape) @string.escape - -(null) @constant.builtin - -(number) @number - -(meta) @keyword.directive - -(meta - name: (identifier) @variable.member) - -(entry_inline - key: (identifier) @variable.member) - -(entry_block - key: (identifier) @variable.member) - -(self) @variable.builtin - -(arg - (identifier) @variable.parameter) - -(ellipsis) @variable.parameter - -(type - _ @type) diff --git a/queries/koto/injections.scm b/queries/koto/injections.scm deleted file mode 100644 index 2f0e58eb6..000000000 --- a/queries/koto/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) diff --git a/queries/koto/locals.scm b/queries/koto/locals.scm deleted file mode 100644 index c18487483..000000000 --- a/queries/koto/locals.scm +++ /dev/null @@ -1,28 +0,0 @@ -; Scopes -(function - body: (_) @local.scope) - -; Definitions -(arg - (variable) @local.definition.parameter) - -(assign - (identifier) @local.definition.var) - -(for_args - (variable) @local.definition.var) - -(match_patterns - (variable) @local.definition.var) - -(import_item - (identifier) @local.definition.import) - -(entry_block - (identifier) @local.definition.field) - -(entry_inline - (identifier) @local.definition.field) - -; References -(identifier) @local.reference |
