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:
Isopod 2021-12-24 19:53:32 +01:00 committed by GitHub
parent b99f46c735
commit 9174b095b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 477 additions and 0 deletions

33
queries/pascal/folds.scm Normal file
View 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)