mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
- 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.
27 lines
501 B
Text
27 lines
501 B
Text
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:
|