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/circom | |
| 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/circom')
| -rw-r--r-- | queries/circom/folds.scm | 13 | ||||
| -rw-r--r-- | queries/circom/highlights.scm | 137 | ||||
| -rw-r--r-- | queries/circom/injections.scm | 2 | ||||
| -rw-r--r-- | queries/circom/locals.scm | 12 |
4 files changed, 0 insertions, 164 deletions
diff --git a/queries/circom/folds.scm b/queries/circom/folds.scm deleted file mode 100644 index 47525b174..000000000 --- a/queries/circom/folds.scm +++ /dev/null @@ -1,13 +0,0 @@ -[ - (template_body) - (block_statement) - (if_statement) - (for_statement) - (while_statement) - (function_body) - (call_expression) - (array_expression) - (tuple_expression) - (comment) - (include_directive)+ -] @fold diff --git a/queries/circom/highlights.scm b/queries/circom/highlights.scm deleted file mode 100644 index c61925e7a..000000000 --- a/queries/circom/highlights.scm +++ /dev/null @@ -1,137 +0,0 @@ -; identifiers -; ----------- -(identifier) @variable - -; Pragma -; ----------- -[ - "pragma" - "circom" -] @keyword.directive - -(circom_version) @string.special - -; Include -; ----------- -[ - "public" - "signal" - "var" - "include" -] @keyword.import - -; Literals -; -------- -(string) @string - -(int_literal) @number - -; Definitions -; ----------- -(function_definition - name: (identifier) @function) - -(template_definition - name: (identifier) @function) - -; Use constructor coloring for special functions -"main" @constructor - -; Invocations -(call_expression - . - (identifier) @function.call) - -; Function parameters -(parameter - name: (identifier) @variable.parameter) - -; Members -(member_expression - property: (property_identifier) @property) - -; Tokens -; ------- -; Keywords -[ - "input" - "output" - "public" - "component" -] @keyword - -[ - "for" - "while" -] @keyword.repeat - -[ - "if" - "else" -] @keyword.conditional - -"return" @keyword.return - -[ - "function" - "template" -] @keyword.function - -; Punctuation -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket - -[ - "." - "," - ";" -] @punctuation.delimiter - -; Operators -[ - "&&" - "||" - ">>" - "<<" - "&" - "^" - "|" - "+" - "-" - "*" - "/" - "%" - "**" - "<" - "<=" - "=" - "==" - "!=" - "+=" - "-=" - ">=" - ">" - "!" - "~" - "-" - "+" - "++" - "--" - "<==" - "==>" - "<--" - "-->" - "===" -] @operator - -; Comments -(comment) @comment @spell - -((comment) @comment.documentation - (#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$")) diff --git a/queries/circom/injections.scm b/queries/circom/injections.scm deleted file mode 100644 index 2f0e58eb6..000000000 --- a/queries/circom/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) diff --git a/queries/circom/locals.scm b/queries/circom/locals.scm deleted file mode 100644 index 4c3a75152..000000000 --- a/queries/circom/locals.scm +++ /dev/null @@ -1,12 +0,0 @@ -(function_definition) @local.scope - -(template_definition) @local.scope - -(main_component_definition) @local.scope - -(block_statement) @local.scope - -(parameter - name: (identifier) @local.definition) @local.definition - -(identifier) @local.reference |
