mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
feat(t32): initial support
This commit is contained in:
parent
51df4212e7
commit
2d48cbc831
10 changed files with 371 additions and 0 deletions
103
tests/query/highlights/t32/keywords.cmm
Normal file
103
tests/query/highlights/t32/keywords.cmm
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
PRIVATE &password
|
||||
; <- keyword
|
||||
; ^ variable.builtin
|
||||
ENTRY &password
|
||||
; <- keyword
|
||||
; ^ parameter
|
||||
|
||||
IF "&password"==""
|
||||
; <- conditional
|
||||
; ^ string
|
||||
; ^ variable.builtin
|
||||
; ^ operator
|
||||
(
|
||||
ECHO "Failed to provide password."
|
||||
ENDDO
|
||||
; ^ keyword.return
|
||||
)
|
||||
ELSE
|
||||
; <- conditional
|
||||
(
|
||||
PRIVATE &pass
|
||||
|
||||
&pass=FALSE()
|
||||
; ^ function.builtin
|
||||
WHILE !&pass
|
||||
; ^ operator
|
||||
(
|
||||
GOSUB verify_password "&password"
|
||||
; ^ function.call
|
||||
RETURNVALUES &pass
|
||||
; ^ parameter
|
||||
WAIT 10.ms
|
||||
; ^ number
|
||||
)
|
||||
|
||||
IF !&pass
|
||||
GOTO fail
|
||||
; ^ label
|
||||
ELSE
|
||||
(
|
||||
GOSUB start_debug
|
||||
; ^ function.call
|
||||
)
|
||||
)
|
||||
|
||||
LOCAL &num
|
||||
; ^ variable.builtin
|
||||
|
||||
&num = 2.
|
||||
; ^ number
|
||||
|
||||
RePeaT &num PRINT "Password: &password"
|
||||
; ^ variable.builtin
|
||||
; ^ variable.builtin
|
||||
|
||||
WinCLEAR
|
||||
FramePOS ,,,,Maximized
|
||||
; ^ punctuation.delimiter
|
||||
; ^ constant
|
||||
WinPOS 0% 50% 100% 35%
|
||||
; ^ number
|
||||
COVerage.ListFunc
|
||||
|
||||
ENDDO
|
||||
|
||||
|
||||
fail:
|
||||
; <- label
|
||||
PRINT %ERROR "Password verification failed."
|
||||
END
|
||||
; ^ keyword.return
|
||||
|
||||
|
||||
verify_password:
|
||||
; <- function
|
||||
(
|
||||
PARAMETERS &password
|
||||
; ^ parameter
|
||||
|
||||
SYStem.Option.KEYCODE "&password"
|
||||
SYStem.JtagClock 1kHz
|
||||
; ^ number
|
||||
SYStem.Mode.Attach
|
||||
|
||||
Data.Set EAXI:0x34000000 %Long 0x34000100 0x34000021 /verify
|
||||
; ^ number
|
||||
; ^ constant.builtin
|
||||
; ^ constant
|
||||
|
||||
RETURN TRUE()
|
||||
; ^ keyword.return
|
||||
)
|
||||
|
||||
|
||||
SUBROUTINE start_debug
|
||||
; ^ function
|
||||
(
|
||||
Go main
|
||||
RETURN
|
||||
; ^ keyword.return
|
||||
)
|
||||
|
||||
// vim: set ft=t32:
|
||||
Loading…
Add table
Add a link
Reference in a new issue