mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat(t32)!: update parser and queries (#8276)
`trace32_hll_variable` has been removed from the grammar. The queries are now capturing `symbol` instead. `symbol` is highlighted as variable or constant.
This commit is contained in:
parent
f46e3a09bd
commit
b50774079a
6 changed files with 17 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
Var.NEWGLOBAL char[4][32] \myarr
|
||||
; <- @keyword
|
||||
; ^ @type.builtin
|
||||
; ^ @variable.builtin
|
||||
; ^ @variable
|
||||
LOCAL &i &data
|
||||
|
||||
&data="zero|one|two|three"
|
||||
|
|
@ -12,20 +12,20 @@ WHILE &i<4
|
|||
PRIVATE &val
|
||||
&val=STRing.SPLIT("&data","|",&i)
|
||||
Var.Assign \myarr[&i]="&val"
|
||||
; ^ @variable.builtin
|
||||
; ^ @variable
|
||||
; ^ @operator
|
||||
&i=&i+1.
|
||||
)
|
||||
|
||||
Var.NEWLOCAL \x
|
||||
; <- @keyword
|
||||
; ^ @variable.builtin
|
||||
; ^ @variable
|
||||
Var.set \x=func3(5,3)
|
||||
; ^ @variable.builtin
|
||||
; ^ @variable
|
||||
; ^ @function.call
|
||||
; ^ @number
|
||||
PRINT Var.VALUE(\x)
|
||||
; ^ @variable.builtin
|
||||
; ^ @variable
|
||||
PRINT Var.VALUE('a')
|
||||
; ^ @character
|
||||
Var.Assign (*ap)[2..4] = &a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue