Debian Codegraph @

runtime/queries/nickel/highlights.scm

raw symbols SCIP
1 (types) @type
2 (type_builtin) @type.builtin
3 "Array" @type.builtin
4
5 (enum_tag) @constructor
6
7 "null" @constant.builtin
8 (bool) @constant.builtin.boolean
9 (str_esc_char) @constant.character.escape
10 (num_literal) @constant.numeric
11
12 (str_chunks) @string
13
14 ; NOTE: Nickel has no block comments
15 (comment) @comment.line
16 ; Nickel doesn't use comments for documentation, ideally this would be
17 ; `@documentation` or something similar
18 (annot_atom
19 doc: (static_string) @comment.block.documentation
20 )
21
22 (record_operand (atom (ident) @variable))
23 (let_in_block
24 "let" @keyword
25 "rec"? @keyword
26 "in" @keyword
27 )
28
29 (let_binding
30 pat: (pattern
31 (ident) @variable
32 )
33 )
34
35 (fun_expr
36 "fun" @keyword.function
37 pats:
38 (pattern_fun (ident) @variable.parameter)+
39 "=>" @operator
40 )
41 (record_field) @variable.other.member
42 ; Field access `o.field`: the id of a record operation chain.
43 (record_operation_chain id: (ident) @variable.other.member)
44
45 [
46 "."
47 ] @punctuation.delimiter
48 [
49 "{" "}"
50 "(" ")"
51 "[|" "|]"
52 "[" "]"
53 ] @punctuation.bracket
54 (multstr_start) @punctuation.bracket
55 (multstr_end) @punctuation.bracket
56 (interpolation_start) @punctuation.bracket
57 (interpolation_end) @punctuation.bracket
58
59 ["forall" "default" "doc"] @keyword
60 ["if" "then" "else" "match"] @keyword.control.conditional
61 "import" @keyword.control.import
62
63 (infix_expr
64 op: (_) @operator
65 )
66
67 (applicative
68 t1: (applicative
69 (record_operand) @function
70 )
71 )
72 (builtin) @function.builtin