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
[ "abstract" "all" "at"
  "case"
  "end" "extends" "external" "external_as_list"
  "for"
  "is"
  "limited"
  "null"
  "others"
  "package"
  ;; "project"
  "renames"
  "type"
  "use"
  "when"
  "with"
  ] @keyword

;; Avoid highlighting Project in Project'Project_Dir
(project_declaration "project" @keyword)

;; highlight qualifiers as keywords (not all qualifiers are actual keywords)
(project_qualifier _ @keyword)

[":=" "&" "|" "=>"] @operator

(comment) @comment
(string_literal) @string
(numeric_literal) @constant.numeric

;; Type
(typed_string_declaration name: (identifier) @type)
(variable_declaration type: (name (identifier) @type .))

;; Variable
(variable_declaration name: (identifier) @variable)
(variable_reference (name (identifier) @variable .) .)

;; Function
(builtin_function_call name: _ @function.builtin)

;; Attribute
(attribute_declaration name: (identifier) @attribute)
(attribute_reference (identifier) @attribute)

;; Package
(variable_reference (name (identifier) @function .) "'")
(package_declaration
 [ name: (identifier) @function
   endname: (identifier) @function
   origname: (name (identifier) @function .)
   basename: (name (identifier) @function .)])