mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat(tcl): add parser and queries
This commit is contained in:
parent
51d15ef5da
commit
b8840a426e
6 changed files with 143 additions and 0 deletions
25
queries/tcl/indents.scm
Normal file
25
queries/tcl/indents.scm
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
(braced_word_simple)
|
||||
(namespace)
|
||||
(command)
|
||||
(conditional)
|
||||
(foreach)
|
||||
(while)
|
||||
(try)
|
||||
(procedure)
|
||||
(command_substitution)
|
||||
] @indent.begin
|
||||
|
||||
(quoted_word) @indent.align
|
||||
|
||||
([
|
||||
(expr)
|
||||
(arguments)
|
||||
] @indent.align
|
||||
(#set! "indent.open_delimiter" "{")
|
||||
(#set! "indent.close_delimiter" "}"))
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
] @indent.branch @indent.end
|
||||
Loading…
Add table
Add a link
Reference in a new issue