Debian Codegraph @

runtime/queries/amber/highlights.scm

raw symbols SCIP
1 (comment) @comment
2
3 [
4 "if"
5 "loop"
6 "for"
7 "return"
8 "fun"
9 "else"
10 "then"
11 "break"
12 "continue"
13 "and"
14 "or"
15 "not"
16 "let"
17 "pub"
18 "main"
19 "echo"
20 "exit"
21 "fun"
22 "import"
23 "from"
24 "as"
25 "in"
26 "fail"
27 "failed"
28 "silent"
29 "nameof"
30 "is"
31 "unsafe"
32 "trust"
33 ] @keyword
34
35 ; Literals
36 (boolean) @constant.builtin.boolean
37 (number) @constant.numeric
38 (null) @constant.builtin
39 (string) @string
40 (status) @keyword
41 ; Highlight only command delimiters, not content (bash injection handles content)
42 (command
43 ["$"] @string)
44 (handler) @keyword
45 (block) @punctuation.delimiter
46 (variable_init) @keyword
47 (variable_assignment) @punctuation.delimiter
48 (variable) @variable
49 (escape_sequence) @constant.character.escape
50 (type_name_symbol) @type
51 (interpolation) @punctuation.delimiter
52 (reference) @keyword
53 (preprocessor_directive) @comment
54 (shebang) @comment
55 (function_definition
56 name: (variable) @function.method)
57 (function_call
58 name: (variable) @function.method)
59 (import_statement
60 "pub" @keyword
61 "import" @keyword
62 "from" @keyword)