mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
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 commitba223ceecc. - Revert "fix(tests): remove t32 tests" This reverts commit97957a547b.
This commit is contained in:
parent
2fb7359828
commit
536c8a3880
11 changed files with 422 additions and 3 deletions
27
tests/query/highlights/t32/var.cmm
Normal file
27
tests/query/highlights/t32/var.cmm
Normal file
|
|
@ -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:
|
||||
Loading…
Add table
Add a link
Reference in a new issue