blob: 57b26116136277562f473d67dffba5531f0d2963 (
plain) (
blame)
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
|
; Keywords
[
"package" "import" "using" "option" "location" "bits" "type" "instance" "at"
"struct" "union" "enum" "reg" "reserved" "assert_pos" "skip_to" "buffer"
"ro" "rw" "wo"
] @keyword
; Keep directives preproc-colored and suppress nested captures
((directive) @attribute (#set! "priority" 120))
((directive (directive_element) @none) (#set! "priority" 121))
((directive (directive_element (identifier) @none)) (#set! "priority" 121))
((directive (directive_element (directive_value (string) @none))) (#set! "priority" 121))
((directive (directive_element (directive_value (number) @none))) (#set! "priority" 121))
[
"(" ")" "[" "]" "{" "}" ";"
] @punctuation.bracket
[
":" "," "." "=" ";"
] @punctuation.delimiter
"@" @operator
(identifier) @variable
(name (identifier) @type)
(string) @string
(number) @number
(line_comment) @comment
(doc_comment) @comment.documentation
(bits_decl name: (identifier) @type)
(type_decl name: (identifier) @type)
(instance_decl name: (identifier) @variable)
(register_decl name: (identifier) @function)
(register_bits_decl name: (identifier) @field)
|