mirror of https://github.com/helix-editor/helix
Add support for Amber-lang (#12021)
Co-authored-by: Phoenix Himself <pkaras.it@gmail.com> Co-authored-by: Michael Davis <mcarsondavis@gmail.com>pull/11243/merge
parent
9e0d2d0a19
commit
f305c7299d
@ -0,0 +1,60 @@
|
|||||||
|
(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.numeric
|
||||||
|
(string) @string
|
||||||
|
(status) @keyword
|
||||||
|
(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)
|
Loading…
Reference in New Issue