mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
Add support for Pascal (#2153)
* Add support for Pascal * Pascal: Replace some of the capture groups, use lua-match where possible
This commit is contained in:
parent
b99f46c735
commit
9174b095b6
6 changed files with 477 additions and 0 deletions
32
queries/pascal/indents.scm
Normal file
32
queries/pascal/indents.scm
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
[
|
||||
(statement)
|
||||
(declVars)
|
||||
(declConsts)
|
||||
(declTypes)
|
||||
(declProc)
|
||||
(declArgs)
|
||||
(declUses)
|
||||
(declClass)
|
||||
(exprArgs)
|
||||
(exprSubscript)
|
||||
(exprBrackets)
|
||||
(exprParens)
|
||||
(recInitializer)
|
||||
(arrInitializer)
|
||||
(defaultValue)
|
||||
] @indent
|
||||
|
||||
(defProc (block) @indent)
|
||||
|
||||
[
|
||||
(kEnd)
|
||||
(kFinally)
|
||||
(kDo)
|
||||
(kUntil)
|
||||
(kExcept)
|
||||
(kElse)
|
||||
(kThen)
|
||||
(declSection)
|
||||
"]"
|
||||
")"
|
||||
] @branch
|
||||
Loading…
Add table
Add a link
Reference in a new issue