aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/t32/var.cmm
diff options
context:
space:
mode:
authorChristoph Sax <christoph.sax@mailbox.org>2023-07-30 17:23:30 +0200
committerChristian Clason <c.clason@uni-graz.at>2023-07-30 19:29:33 +0200
commit536c8a3880a79492e6d69506b36088ebf4dd2f2a (patch)
treeedec49275195d064df4ace4a4085e48ddbd44796 /tests/query/highlights/t32/var.cmm
parentfeat(t32)!: update queries for new HLL node types (diff)
downloadnvim-treesitter-536c8a3880a79492e6d69506b36088ebf4dd2f2a.tar
nvim-treesitter-536c8a3880a79492e6d69506b36088ebf4dd2f2a.tar.gz
nvim-treesitter-536c8a3880a79492e6d69506b36088ebf4dd2f2a.tar.bz2
nvim-treesitter-536c8a3880a79492e6d69506b36088ebf4dd2f2a.tar.lz
nvim-treesitter-536c8a3880a79492e6d69506b36088ebf4dd2f2a.tar.xz
nvim-treesitter-536c8a3880a79492e6d69506b36088ebf4dd2f2a.tar.zst
nvim-treesitter-536c8a3880a79492e6d69506b36088ebf4dd2f2a.zip
feat(t32): re-enable tests
- Switch to GitLab mirror repository - Lock grammar version 2.2.0 - Revert "fix(tests): mark t32 as allowed to fail" This reverts commit ba223ceecc5d66312780c45079b6ae55c406fa96. - Revert "fix(tests): remove t32 tests" This reverts commit 97957a547b93412411ba3a8a9abd27589247c869.
Diffstat (limited to 'tests/query/highlights/t32/var.cmm')
-rw-r--r--tests/query/highlights/t32/var.cmm27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/query/highlights/t32/var.cmm b/tests/query/highlights/t32/var.cmm
new file mode 100644
index 000000000..a2d6f9b2a
--- /dev/null
+++ b/tests/query/highlights/t32/var.cmm
@@ -0,0 +1,27 @@
+Var.NEWGLOBAL char[4][32] \myarr
+; <- keyword
+; ^ type
+; ^ variable.builtin
+LOCAL &i &data
+
+&data="zero|one|two|three"
+
+&i=0.
+WHILE &i<4
+(
+ PRIVATE &val
+ &val=STRing.SPLIT("&data","|",&i)
+ Var.Assign \myarr[&i]="&val"
+; ^ variable.builtin
+ &i=&i+1.
+)
+
+Var.NEWLOCAL \x
+; <- keyword
+; ^ variable.builtin
+Var.set \x=func3(5,3)
+; ^ variable.builtin
+PRINT Var.VALUE(\x)
+; ^ variable.builtin
+
+// vim: set ft=t32: