aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2025-07-21 19:09:00 -0700
committerChristian Clason <ch.clason+github@icloud.com>2025-07-22 09:52:32 +0200
commit40cca05b40438ddd74125132b0cec58c9afdccb2 (patch)
tree91c68eb9de0624a4671671781be067a9b7f5a661 /runtime/queries
parentfix(jinja): remove crashing pattern (diff)
downloadnvim-treesitter-40cca05b40438ddd74125132b0cec58c9afdccb2.tar
nvim-treesitter-40cca05b40438ddd74125132b0cec58c9afdccb2.tar.gz
nvim-treesitter-40cca05b40438ddd74125132b0cec58c9afdccb2.tar.bz2
nvim-treesitter-40cca05b40438ddd74125132b0cec58c9afdccb2.tar.lz
nvim-treesitter-40cca05b40438ddd74125132b0cec58c9afdccb2.tar.xz
nvim-treesitter-40cca05b40438ddd74125132b0cec58c9afdccb2.tar.zst
nvim-treesitter-40cca05b40438ddd74125132b0cec58c9afdccb2.zip
fix(c, ecma): remove invalid predicate parameters
These are not valid named nodes in their respective languages.
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/c/highlights.scm2
-rw-r--r--runtime/queries/ecma/indents.scm4
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/queries/c/highlights.scm b/runtime/queries/c/highlights.scm
index ea65075f2..442343abf 100644
--- a/runtime/queries/c/highlights.scm
+++ b/runtime/queries/c/highlights.scm
@@ -149,7 +149,7 @@
((field_expression
(field_identifier) @property) @_parent
- (#not-has-parent? @_parent template_method function_declarator call_expression))
+ (#not-has-parent? @_parent function_declarator call_expression))
(field_designator) @property
diff --git a/runtime/queries/ecma/indents.scm b/runtime/queries/ecma/indents.scm
index d56741670..b613426ee 100644
--- a/runtime/queries/ecma/indents.scm
+++ b/runtime/queries/ecma/indents.scm
@@ -33,11 +33,11 @@
(assignment_expression
right: (_) @_right
- (#not-kind-eq? @_right "arrow_function" "function")) @indent.begin
+ (#not-kind-eq? @_right "arrow_function")) @indent.begin
(variable_declarator
value: (_) @_value
- (#not-kind-eq? @_value "arrow_function" "call_expression" "function")) @indent.begin
+ (#not-kind-eq? @_value "arrow_function" "call_expression")) @indent.begin
(arguments
")" @indent.end)