Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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)