mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -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
33
queries/pascal/folds.scm
Normal file
33
queries/pascal/folds.scm
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
[
|
||||
(interface)
|
||||
(implementation)
|
||||
(initialization)
|
||||
(finalization)
|
||||
|
||||
(if)
|
||||
(ifElse)
|
||||
(while)
|
||||
(repeat)
|
||||
(for)
|
||||
(foreach)
|
||||
(try)
|
||||
(case)
|
||||
(caseCase)
|
||||
(asm)
|
||||
(with)
|
||||
|
||||
(declVar)
|
||||
(declConst)
|
||||
(declEnum)
|
||||
(declProcRef)
|
||||
(declExports)
|
||||
(declProcRef)
|
||||
(declType)
|
||||
(defProc)
|
||||
(declField)
|
||||
(declProp)
|
||||
|
||||
(comment)
|
||||
] @fold
|
||||
|
||||
(interface (declProc) @fold)
|
||||
Loading…
Add table
Add a link
Reference in a new issue