diff options
| author | Isopod <Isopod@users.noreply.github.com> | 2021-12-24 19:53:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-24 13:53:32 -0500 |
| commit | 9174b095b6fe3ab31634e71e152a61c14949b669 (patch) | |
| tree | 1912adc605dd981dd979ef74930a6bb6e6396099 /queries/pascal/indents.scm | |
| parent | Query: update highlights (diff) | |
| download | nvim-treesitter-9174b095b6fe3ab31634e71e152a61c14949b669.tar nvim-treesitter-9174b095b6fe3ab31634e71e152a61c14949b669.tar.gz nvim-treesitter-9174b095b6fe3ab31634e71e152a61c14949b669.tar.bz2 nvim-treesitter-9174b095b6fe3ab31634e71e152a61c14949b669.tar.lz nvim-treesitter-9174b095b6fe3ab31634e71e152a61c14949b669.tar.xz nvim-treesitter-9174b095b6fe3ab31634e71e152a61c14949b669.tar.zst nvim-treesitter-9174b095b6fe3ab31634e71e152a61c14949b669.zip | |
Add support for Pascal (#2153)
* Add support for Pascal
* Pascal: Replace some of the capture groups, use lua-match where possible
Diffstat (limited to 'queries/pascal/indents.scm')
| -rw-r--r-- | queries/pascal/indents.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/queries/pascal/indents.scm b/queries/pascal/indents.scm new file mode 100644 index 000000000..829054ddb --- /dev/null +++ b/queries/pascal/indents.scm @@ -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 |
