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
;; Keywords
[
  "CHIP"
  "IN"
  "OUT"
  "PARTS"
  "BUILTIN"
  "CLOCKED"
] @keyword

(identifier) @variable

(chip_definition
  name: (identifier) @function)

(in_section
  input_pin_name: (identifier) @variable.parameter)

(out_section
  output_pin_name: (identifier) @variable.parameter)

(builtin_body
  chip_name: (identifier) @function)

(clocked_body
  (identifier) @variable.parameter)

(part
  chip_name: (identifier) @function)

(connection
  part_pin: (identifier) @variable.other.member
  chip_pin: [
    (identifier) @variable.parameter
    (bus_identifier
      (identifier) @variable.parameter
      (number) @constant.numeric)
  ])

(bus_identifier
  (number) @constant.numeric)

;; Comments
(comment) @comment