diff options
| author | Himujjal <himu@tuta.io> | 2021-04-02 03:47:34 +0530 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-04-02 03:29:21 +0200 |
| commit | 83bfcde7c28514b6ba8f9c921a5cf9893eedb1bd (patch) | |
| tree | 2b7063254cfc50839661a627ffaac416d3a4f822 | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-83bfcde7c28514b6ba8f9c921a5cf9893eedb1bd.tar nvim-treesitter-83bfcde7c28514b6ba8f9c921a5cf9893eedb1bd.tar.gz nvim-treesitter-83bfcde7c28514b6ba8f9c921a5cf9893eedb1bd.tar.bz2 nvim-treesitter-83bfcde7c28514b6ba8f9c921a5cf9893eedb1bd.tar.lz nvim-treesitter-83bfcde7c28514b6ba8f9c921a5cf9893eedb1bd.tar.xz nvim-treesitter-83bfcde7c28514b6ba8f9c921a5cf9893eedb1bd.tar.zst nvim-treesitter-83bfcde7c28514b6ba8f9c921a5cf9893eedb1bd.zip | |
fixed some errors
| -rw-r--r-- | queries/zig/folds.scm | 1 | ||||
| -rw-r--r-- | queries/zig/highlights.scm | 21 | ||||
| -rw-r--r-- | queries/zig/indents.scm | 1 | ||||
| -rw-r--r-- | queries/zig/injections.scm | 1 | ||||
| -rw-r--r-- | queries/zig/locals.scm | 2 |
5 files changed, 15 insertions, 11 deletions
diff --git a/queries/zig/folds.scm b/queries/zig/folds.scm index 2781c0f2a..0001b0e1a 100644 --- a/queries/zig/folds.scm +++ b/queries/zig/folds.scm @@ -10,6 +10,7 @@ (test_expression) (struct_expression) (anonymous_struct_enum) + (anonymous_array_expr) (union_expression) (enum_expression) ] @fold diff --git a/queries/zig/highlights.scm b/queries/zig/highlights.scm index 3a044afee..d1dcb8668 100644 --- a/queries/zig/highlights.scm +++ b/queries/zig/highlights.scm @@ -1,4 +1,3 @@ -; Types ; Zig @@ -13,23 +12,23 @@ ; function definition (function_signature - (identifier) @function -) + name: (identifier) @function) -(function_declaration (identifier) @function) +(function_declaration + name: (identifier) @function) ; Function calls -; (call_expression -; function: (identifier)) @function +(call_expression + function: (identifier) @function) (build_in_call_expr - function: (identifier) @function.builtin + function: (identifier) @function ) ;; other identifiers (type_identifier) @type (primitive_type) @type.builtin -(field_identifier) @property +(field_identifier) @field (line_comment) @comment (doc_comment) @comment @@ -38,14 +37,14 @@ (integer_literal) @number (float_literal) @number -(boolean_literal) @constant.builtin +(boolean_literal) @boolean (undefined_literal) @constant.builtin (null_literal) @constant.builtin -(ERROR) @error +; (ERROR) @error (string_literal) @string -(multiline_string_literal "\\\\" @string.special) +(multiline_string_literal) @string (escape_sequence) @constant.builtin diff --git a/queries/zig/indents.scm b/queries/zig/indents.scm index 0502fdcaa..aba56f4a5 100644 --- a/queries/zig/indents.scm +++ b/queries/zig/indents.scm @@ -11,6 +11,7 @@ (struct_expression) (struct_construction) (anonymous_struct_enum) + (anonymous_array_expr) (enum_expression) (union_expression) ] @indent diff --git a/queries/zig/injections.scm b/queries/zig/injections.scm new file mode 100644 index 000000000..a7dbad4a5 --- /dev/null +++ b/queries/zig/injections.scm @@ -0,0 +1 @@ +(line_comment) @comment diff --git a/queries/zig/locals.scm b/queries/zig/locals.scm index 7767686af..54bb4d2e3 100644 --- a/queries/zig/locals.scm +++ b/queries/zig/locals.scm @@ -1,3 +1,4 @@ + (function_declaration name: (identifier) @definition.function ) @@ -22,4 +23,5 @@ (while_expression) (for_expression) (test_expression) + (anonymous_array_expr) ] @scope |
