diff options
| author | George Harker <george@george-graphics.co.uk> | 2023-03-20 14:44:39 -0700 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-24 13:07:53 -0400 |
| commit | cb568af5393241e5dbc9c19157c5df5e9ca9af2d (patch) | |
| tree | e3a1848a3f1c7a03a4ecadd14f95022eaeb52f0f /queries/ecma | |
| parent | split delimiter into open_delimiter and close_delimiter (diff) | |
| download | nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.gz nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.bz2 nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.lz nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.xz nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.zst nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.zip | |
use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md
adjust indents for bass
fix doc capture comment
Diffstat (limited to 'queries/ecma')
| -rw-r--r-- | queries/ecma/indents.scm | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/queries/ecma/indents.scm b/queries/ecma/indents.scm index 1a5520e52..602b8d901 100644 --- a/queries/ecma/indents.scm +++ b/queries/ecma/indents.scm @@ -16,42 +16,42 @@ (switch_statement) (template_substitution) (ternary_expression) -] @indent +] @indent.begin -(arguments (call_expression) @indent) -(binary_expression (call_expression) @indent) -(expression_statement (call_expression) @indent) +(arguments (call_expression) @indent.begin) +(binary_expression (call_expression) @indent.begin) +(expression_statement (call_expression) @indent.begin) (arrow_function body: (_) @_body (#not-has-type? @_body statement_block) -) @indent +) @indent.begin (assignment_expression right: (_) @_right (#not-has-type? @_right arrow_function function) -) @indent +) @indent.begin (variable_declarator value: (_) @_value (#not-has-type? @_value arrow_function call_expression function) -) @indent +) @indent.begin -(arguments ")" @indent_end) -(object "}" @indent_end) -(statement_block "}" @indent_end) +(arguments ")" @indent.end) +(object "}" @indent.end) +(statement_block "}" @indent.end) [ (arguments (object)) ")" "}" "]" -] @branch -(statement_block "{" @branch) +] @indent.branch +(statement_block "{" @indent.branch) -(parenthesized_expression ("(" (_) ")" @indent_end)) -["}" "]"] @indent_end +(parenthesized_expression ("(" (_) ")" @indent.end)) +["}" "]"] @indent.end [ (comment) (template_string) -] @ignore +] @indent.ignore -(ERROR) @auto +(ERROR) @indent.auto |
