Debian Codegraph @

runtime/queries/dhall/highlights.scm

raw symbols SCIP
1 ;; Literals
2 (integer_literal) @constant.numeric.integer
3 (natural_literal) @constant.numeric.integer
4 (double_literal) @constant.numeric.float
5 (boolean_literal) @constant.builtin.boolean
6 (builtin "None") @constant.builtin
7
8 ;; Text
9 (text_literal) @string
10 (interpolation "}" @string)
11 (double_quote_escaped) @constant.character.escape
12 (single_quote_escaped) @constant.character.escape
13
14 ;; Imports
15 (local_import) @string.special.path
16 (http_import) @string.special.url
17 (env_import) @keyword
18 (env_variable) @string.special
19 (import_hash) @string.special
20 (missing_import) @keyword.control.import
21 [ (import_as_location) (import_as_text) ] @type
22
23 ;; Comments
24 (block_comment) @comment.block
25 (line_comment) @comment.line
26
27 ;; Types
28 ([
29 (let_binding (label) @type)
30 (union_type_entry (label) @type)
31 ] (#match? @type "^[A-Z]"))
32 ((primitive_expression
33 (identifier (label) @type)
34 (selector (label) @type)?) @whole_identifier
35 (#match? @whole_identifier "(?:^|\\.)[A-Z][^.]*$"))
36
37 ;; Variables
38 (identifier [
39 (label) @variable
40 (de_bruijn_index) @operator
41 ])
42 (let_binding label: (label) @variable)
43 (lambda_expression label: (label) @variable.parameter)
44 (record_literal_entry (label) @variable.other.member)
45 (record_type_entry (label) @variable.other.member)
46 (selector) @variable.other.member
47
48 ;; Keywords
49 [
50 "let"
51 "in"
52 "assert"
53 ] @keyword
54 [
55 "using"
56 "as"
57 "with"
58 ] @keyword.operator
59
60 ;; Operators
61 [
62 (type_operator)
63 (assign_operator)
64 (lambda_operator)
65 (arrow_operator)
66 (infix_operator)
67 (completion_operator)
68 (assert_operator)
69 (forall_operator)
70 (empty_record_literal)
71 ] @operator
72
73 ;; Builtins
74 (builtin_function) @function.builtin
75 (builtin [
76 "Bool"
77 "Optional"
78 "Natural"
79 "Integer"
80 "Double"
81 "Text"
82 "Date"
83 "Time"
84 "TimeZone"
85 "List"
86 "Type"
87 "Kind"
88 "Sort"
89 ] @type.builtin)
90
91 ;; Punctuation
92 [ "," "|" ] @punctuation.delimiter
93 (selector_dot) @punctuation.delimiter
94 [
95 "("
96 ")"
97 "{"
98 "}"
99 "["
100 "]"
101 "<"
102 ">"
103 ] @punctuation.bracket
104
105 ;; Conditionals
106 [
107 "if"
108 "then"
109 "else"
110 ] @keyword.control.conditional