1
0
mirror of https://github.com/helix-editor/helix synced 2026-03-07 20:46:21 +01:00
helix/runtime/queries/basic/highlights.scm

73 lines
681 B
Scheme

; Keywords
[
"PRINT"
"LET"
"IF"
"THEN"
"GOTO"
"GOSUB"
"RETURN"
"FOR"
"TO"
"STEP"
"NEXT"
"INPUT"
"END"
"REM"
"DATA"
"READ"
"DIM"
] @keyword
; Logical operators
[
"AND"
"and"
"OR"
"or"
"NOT"
] @keyword.operator
; Comments
(comment) @comment
(rem_statement) @comment
; Function calls
(function_call) @function.call
; Numbers
(line_number) @constant.numeric
(number) @constant.numeric
; Strings
(string) @string
; Operators
[
"="
"<>"
"<"
">"
"<="
">="
"+"
"-"
"*"
"/"
"^"
] @operator
; Punctuation
[
"("
")"
] @punctuation.bracket
[
","
";"
] @punctuation.delimiter
; Variables
(identifier) @variable