aboutsummaryrefslogtreecommitdiffstats
path: root/queries/pascal/locals.scm
diff options
context:
space:
mode:
authorIsopod <Isopod@users.noreply.github.com>2021-12-24 19:53:32 +0100
committerGitHub <noreply@github.com>2021-12-24 13:53:32 -0500
commit9174b095b6fe3ab31634e71e152a61c14949b669 (patch)
tree1912adc605dd981dd979ef74930a6bb6e6396099 /queries/pascal/locals.scm
parentQuery: update highlights (diff)
downloadnvim-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/locals.scm')
-rw-r--r--queries/pascal/locals.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/queries/pascal/locals.scm b/queries/pascal/locals.scm
new file mode 100644
index 000000000..b97cb096f
--- /dev/null
+++ b/queries/pascal/locals.scm
@@ -0,0 +1,25 @@
+
+(root) @scope
+
+(defProc) @scope
+(lambda) @scope
+(interface (declProc) @scope)
+(declSection (declProc) @scope)
+(declClass (declProc) @scope)
+(declHelper (declProc) @scope)
+(declProcRef) @scope
+
+(exceptionHandler) @scope
+(exceptionHandler variable: (identifier) @definition)
+
+(declArg name: (identifier) @definition)
+(declVar name: (identifier) @definition)
+(declConst name: (identifier) @definition)
+(declLabel name: (identifier) @definition)
+(genericArg name: (identifier) @definition)
+(declEnumValue name: (identifier) @definition)
+(declType name: (identifier) @definition)
+(declType name: (genericTpl entity: (identifier) @definition))
+
+(declProc name: (identifier) @definition)
+(identifier) @reference