mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
feat(enforce): add parser and queries (#7626)
This commit is contained in:
parent
6bc2c0fde8
commit
e8ccc339a3
8 changed files with 295 additions and 0 deletions
30
queries/enforce/indents.scm
Normal file
30
queries/enforce/indents.scm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
[
|
||||
(block)
|
||||
(class_body)
|
||||
(enum_body)
|
||||
(switch_body)
|
||||
(array_creation)
|
||||
(formal_parameters)
|
||||
(actual_parameters)
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"}"
|
||||
] @indent.branch
|
||||
|
||||
[
|
||||
")"
|
||||
"]"
|
||||
"}"
|
||||
] @indent.end
|
||||
|
||||
(comment_line) @indent.ignore
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
(comment_block)
|
||||
] @indent.auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue