fix(c, ecma): remove invalid predicate parameters

These are not valid named nodes in their respective languages.
This commit is contained in:
Riley Bruins 2025-07-21 19:09:00 -07:00 committed by Christian Clason
parent 8c8742871a
commit 40cca05b40
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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)