mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(c, ecma): remove invalid predicate parameters
These are not valid named nodes in their respective languages.
This commit is contained in:
parent
8c8742871a
commit
40cca05b40
2 changed files with 3 additions and 3 deletions
|
|
@ -149,7 +149,7 @@
|
||||||
|
|
||||||
((field_expression
|
((field_expression
|
||||||
(field_identifier) @property) @_parent
|
(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
|
(field_designator) @property
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,11 +33,11 @@
|
||||||
|
|
||||||
(assignment_expression
|
(assignment_expression
|
||||||
right: (_) @_right
|
right: (_) @_right
|
||||||
(#not-kind-eq? @_right "arrow_function" "function")) @indent.begin
|
(#not-kind-eq? @_right "arrow_function")) @indent.begin
|
||||||
|
|
||||||
(variable_declarator
|
(variable_declarator
|
||||||
value: (_) @_value
|
value: (_) @_value
|
||||||
(#not-kind-eq? @_value "arrow_function" "call_expression" "function")) @indent.begin
|
(#not-kind-eq? @_value "arrow_function" "call_expression")) @indent.begin
|
||||||
|
|
||||||
(arguments
|
(arguments
|
||||||
")" @indent.end)
|
")" @indent.end)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue