-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Phoenix Himself <pkaras.it@gmail.com> Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
- Loading branch information
1 parent
9e0d2d0
commit f305c72
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |