mirror of
https://github.com/helix-editor/helix
synced 2026-03-07 20:46:21 +01:00
* highlights(amber): highlight (null) as `@constant.builtin` * highlights(c): highlight (null) as `@constant.builtin` * highlights(opencl): mark (null) as `@constant.builtin` * highlights(prisma): highlight (null) as `@constant.builtin` and not `@constant.builtin.boolean` * highlights(v): highlight (nil) as `@constant.builtin` * queries(crystal): properly highlight (nil) and booleans * highlight(gdscript): highlight (null) as `@constant.builtin` * highlights(r): properly highlight null and nan * highlights(kotlin): don't highlight null as boolean
63 lines
1.1 KiB
Scheme
63 lines
1.1 KiB
Scheme
(comment) @comment
|
|
|
|
[
|
|
"if"
|
|
"loop"
|
|
"for"
|
|
"return"
|
|
"fun"
|
|
"else"
|
|
"then"
|
|
"break"
|
|
"continue"
|
|
"and"
|
|
"or"
|
|
"not"
|
|
"let"
|
|
"pub"
|
|
"main"
|
|
"echo"
|
|
"exit"
|
|
"fun"
|
|
"import"
|
|
"from"
|
|
"as"
|
|
"in"
|
|
"fail"
|
|
"failed"
|
|
"silent"
|
|
"nameof"
|
|
"is"
|
|
"unsafe"
|
|
"trust"
|
|
] @keyword
|
|
|
|
; Literals
|
|
(boolean) @constant.builtin.boolean
|
|
(number) @constant.numeric
|
|
(null) @constant.builtin
|
|
(string) @string
|
|
(status) @keyword
|
|
; Highlight only command delimiters, not content (bash injection handles content)
|
|
(command
|
|
["$"] @string)
|
|
(handler) @keyword
|
|
(block) @punctuation.delimiter
|
|
(variable_init) @keyword
|
|
(variable_assignment) @punctuation.delimiter
|
|
(variable) @variable
|
|
(escape_sequence) @constant.character.escape
|
|
(type_name_symbol) @type
|
|
(interpolation) @punctuation.delimiter
|
|
(reference) @keyword
|
|
(preprocessor_directive) @comment
|
|
(shebang) @comment
|
|
(function_definition
|
|
name: (variable) @function.method)
|
|
(function_call
|
|
name: (variable) @function.method)
|
|
(import_statement
|
|
"pub" @keyword
|
|
"import" @keyword
|
|
"from" @keyword)
|