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/jsonnet | |
| 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/jsonnet')
| -rw-r--r-- | queries/jsonnet/folds.scm | 10 | ||||
| -rw-r--r-- | queries/jsonnet/highlights.scm | 135 | ||||
| -rw-r--r-- | queries/jsonnet/injections.scm | 2 | ||||
| -rw-r--r-- | queries/jsonnet/locals.scm | 27 |
4 files changed, 0 insertions, 174 deletions
diff --git a/queries/jsonnet/folds.scm b/queries/jsonnet/folds.scm deleted file mode 100644 index 91257a790..000000000 --- a/queries/jsonnet/folds.scm +++ /dev/null @@ -1,10 +0,0 @@ -[ - (field) - (object) - (array) - (parenthesis) - (bind) - ; (params) - ; (args) - ; (conditional) -] @fold diff --git a/queries/jsonnet/highlights.scm b/queries/jsonnet/highlights.scm deleted file mode 100644 index 1e67baa32..000000000 --- a/queries/jsonnet/highlights.scm +++ /dev/null @@ -1,135 +0,0 @@ -(id) @variable - -(comment) @comment @spell - -; Literals -(null) @constant.builtin - -(string) @string - -(number) @number - -[ - (true) - (false) -] @boolean - -; Keywords -"for" @keyword.repeat - -"in" @keyword.operator - -"function" @keyword.function - -[ - "if" - "then" - "else" -] @keyword.conditional - -[ - (local) - (tailstrict) - "function" -] @keyword - -[ - "assert" - "error" -] @keyword.exception - -[ - (dollar) - (self) - (super) -] @variable.builtin - -((id) @variable.builtin - (#eq? @variable.builtin "std")) - -; Operators -[ - (multiplicative) - (additive) - (bitshift) - (comparison) - (equality) - (bitand) - (bitxor) - (bitor) - (and) - (or) - (unaryop) -] @operator - -; Punctuation -[ - "[" - "]" - "{" - "}" - "(" - ")" -] @punctuation.bracket - -[ - "." - "," - ";" - ":" -] @punctuation.delimiter - -[ - "::" - ":::" -] @punctuation.special - -(field - (fieldname) - "+" @punctuation.special) - -; Imports -[ - (import) - (importstr) -] @keyword.import - -; Fields -(fieldname - (id) @variable.member) - -(fieldname - (string - (string_content) @variable.member)) - -; Functions -(field - function: (fieldname - (id) @function)) - -(field - function: (fieldname - (string - (string_content) @function))) - -(param - identifier: (id) @variable.parameter) - -(bind - (id) @variable) - -(bind - function: (id) @function) - -; Function call -(functioncall - (fieldaccess - last: (id) @function.call)? - (fieldaccess_super - (id) @function.call)? - (id)? @function.call - "(" - (args - (named_argument - (id) @variable.parameter))? - ")") diff --git a/queries/jsonnet/injections.scm b/queries/jsonnet/injections.scm deleted file mode 100644 index 2f0e58eb6..000000000 --- a/queries/jsonnet/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) diff --git a/queries/jsonnet/locals.scm b/queries/jsonnet/locals.scm deleted file mode 100644 index 778077764..000000000 --- a/queries/jsonnet/locals.scm +++ /dev/null @@ -1,27 +0,0 @@ -(parenthesis) @local.scope - -(anonymous_function) @local.scope - -(object) @local.scope - -(field) @local.scope - -(local_bind) @local.scope - -(field - function: (fieldname - (id) @local.definition.function) - (#set! definition.function.scope "parent")) - -(bind - (id) @local.definition.var) - -(bind - function: (id) @local.definition.function) - -(param - (id) @local.definition.parameter) - -(id) @local.reference - -;(fieldname (id) (#is-not? local)) ; (#is-not?) not supported yet |
