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:
Christoph Sax 2025-11-12 10:06:04 +01:00 committed by GitHub
parent f46e3a09bd
commit b50774079a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 17 additions and 13 deletions

View file

@ -109,7 +109,7 @@ SUBROUTINE start_debug
COVerage.ListModule %MULTI.OBC \sieve
; ^ @keyword
; ^ @constant.builtin
; ^ @string.special.symbol
; ^ @variable
Var.DRAW flags[0..16] /Alternate 3
; ^ @keyword

View file

@ -20,7 +20,7 @@ DATA.SET P:&HEAD+0x4 %LONG DATA.LONG(EA:&HEAD+0x4)&0xFFFFFF
; ^ @constant.builtin
List `main`
; ^ @string.special.symbol
; ^ @variable
&range = 'a'--'z'||'0'--'9'
; ^ @character

View file

@ -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