mirror of https://github.com/helix-editor/helix
Fixup context queries for ECMAScript family
parent
f818a042a7
commit
a354498d1c
@ -0,0 +1,32 @@
|
||||
(arrow_function
|
||||
body: (_) @context.end
|
||||
) @context
|
||||
|
||||
(function_declaration
|
||||
body: (_) @context.end
|
||||
) @context
|
||||
|
||||
(function
|
||||
body: (_) @context.end
|
||||
) @context
|
||||
|
||||
(
|
||||
(expression_statement
|
||||
(call_expression
|
||||
function: (_)))
|
||||
(statement_block) @context.end
|
||||
) @context
|
||||
|
||||
[
|
||||
(call_expression)
|
||||
(class_declaration)
|
||||
(else_clause)
|
||||
(for_statement)
|
||||
; (interface_declaration) ; not usable in javascript
|
||||
(lexical_declaration)
|
||||
(method_definition)
|
||||
(object)
|
||||
(pair)
|
||||
(while_statement)
|
||||
] @context
|
||||
|
@ -0,0 +1 @@
|
||||
; inherits ecma
|
@ -0,0 +1 @@
|
||||
; inherits ecma
|
@ -0,0 +1,3 @@
|
||||
; inherits ecma
|
||||
|
||||
(interface_declaration) @context
|
@ -1,30 +1,3 @@
|
||||
(arrow_function
|
||||
body: (_) @context.end
|
||||
) @context
|
||||
|
||||
(function_declaration
|
||||
body: (_) @context.end
|
||||
) @context
|
||||
|
||||
(
|
||||
(expression_statement
|
||||
(call_expression
|
||||
function: (_)))
|
||||
(statement_block) @context.end
|
||||
) @context
|
||||
|
||||
[
|
||||
(call_expression)
|
||||
(class_declaration)
|
||||
(else_clause)
|
||||
(for_statement)
|
||||
(interface_declaration)
|
||||
(interface_declaration)
|
||||
(lexical_declaration)
|
||||
(lexical_declaration)
|
||||
(method_definition)
|
||||
(object)
|
||||
(pair)
|
||||
(while_statement)
|
||||
] @context
|
||||
; inherits ecma
|
||||
|
||||
(interface_declaration) @context
|
||||
|
Loading…
Reference in New Issue