mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -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
108
tests/query/highlights/t32/keywords.cmm
Normal file
108
tests/query/highlights/t32/keywords.cmm
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
PRIVATE &password
|
||||
; <- keyword
|
||||
; ^ variable.builtin
|
||||
ENTRY &password
|
||||
; <- keyword
|
||||
; ^ parameter
|
||||
|
||||
ENTRY %LINE &salt
|
||||
; <- keyword
|
||||
; ^ constant.builtin
|
||||
; ^ 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