mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
fix(c, ecma): remove invalid predicate parameters
These are not valid named nodes in their respective languages.
This commit is contained in:
committed by
Christian Clason
parent
8c8742871a
commit
40cca05b40
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user