mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -04:00
feat: added more indent queries
This commit is contained in:
parent
72656dcf3c
commit
9184cf3953
15 changed files with 188 additions and 0 deletions
26
queries/javascript/indents.scm
Normal file
26
queries/javascript/indents.scm
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
; inherits: (jsx)
|
||||
|
||||
[
|
||||
(object)
|
||||
(array)
|
||||
(arguments)
|
||||
(statement_block)
|
||||
(object_pattern)
|
||||
(class_body)
|
||||
(method_definition)
|
||||
(named_imports)
|
||||
(binary_expression)
|
||||
(return_statement)
|
||||
(template_substitution)
|
||||
(expression_statement (call_expression))
|
||||
(export_clause)
|
||||
] @indent
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @branch
|
||||
Loading…
Add table
Add a link
Reference in a new issue