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/func | |
| 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/func')
| -rw-r--r-- | queries/func/highlights.scm | 167 | ||||
| -rw-r--r-- | queries/func/injections.scm | 2 |
2 files changed, 0 insertions, 169 deletions
diff --git a/queries/func/highlights.scm b/queries/func/highlights.scm deleted file mode 100644 index 9fd6dd82d..000000000 --- a/queries/func/highlights.scm +++ /dev/null @@ -1,167 +0,0 @@ -; Include -"#include" @keyword.import - -(include_path) @string - -; Preproc -"#pragma" @keyword.directive - -(pragma_directive - [ - "version" - "not-version" - "test-version-set" - ] @keyword.directive) - -; Keywords -[ - "asm" - "impure" - "inline" - "inline_ref" - "method_id" - "type" -] @keyword - -"return" @keyword.return - -; Conditionals -[ - "if" - "ifnot" - "else" - "elseif" - "elseifnot" - "until" -] @keyword.conditional - -; Exceptions -[ - "try" - "catch" -] @keyword.exception - -; Repeats -[ - "do" - "forall" - "repeat" - "while" -] @keyword.repeat - -; Qualifiers -[ - "const" - "global" - (var) -] @keyword.modifier - -; Variables -(identifier) @variable - -; Constants -(const_var_declarations - name: (identifier) @constant) - -; Functions/Methods -(function_definition - name: (function_name) @function) - -(function_application - function: (identifier) @function) - -(method_call - method_name: (identifier) @function.method.call) - -; Parameters -(parameter) @variable.parameter - -; Types -(type_identifier) @type - -(primitive_type) @type.builtin - -; Operators -[ - "=" - "+=" - "-=" - "*=" - "/=" - "~/=" - "^/=" - "%=" - "~%=" - "^%=" - "<<=" - ">>=" - "~>>=" - "^>>=" - "&=" - "|=" - "^=" - "==" - "<" - ">" - "<=" - ">=" - "!=" - "<=>" - "<<" - ">>" - "~>>" - "^>>" - "-" - "+" - "|" - "^" - "*" - "/" - "%" - "~/" - "^/" - "~%" - "^%" - "/%" - "&" - "~" -] @operator - -; Literals -[ - (string) - (asm_instruction) -] @string - -[ - (string_type) - (underscore) -] @character.special - -(number) @number - -; Punctuation -[ - "{" - "}" -] @punctuation.bracket - -[ - "(" - ")" - "()" -] @punctuation.bracket - -[ - "[" - "]" -] @punctuation.bracket - -[ - ";" - "," - "->" -] @punctuation.delimiter - -; Comments -(comment) @comment @spell diff --git a/queries/func/injections.scm b/queries/func/injections.scm deleted file mode 100644 index 2f0e58eb6..000000000 --- a/queries/func/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) |
