Debian Codegraph @

runtime/queries/ptx/highlights.scm

raw symbols SCIP
1 ; highlights.scm - Syntax highlighting for PTX
2
3 ; Comments
4 (comment) @comment
5
6 ; Directives
7 (version_directive) @keyword
8 (target_directive) @keyword
9 (address_size_directive) @keyword
10 (file_directive) @keyword
11 (section_directive) @keyword
12 (visibility_directive) @keyword
13 (pragma_directive) @keyword
14
15 ; Keywords
16 [
17 ".global"
18 ".const"
19 ".param"
20 ".local"
21 ".shared"
22 ".tex"
23 ".func"
24 ".entry"
25 ] @keyword
26
27 ; Types
28 (data_type) @type
29
30 ; Instructions
31 (opcode) @function
32
33 ; Identifiers
34 (identifier) @variable
35
36 ; Registers
37 (register) @variable
38
39 ; Numbers
40 (number) @constant.numeric.integer
41 (float_literal) @constant.numeric.float
42
43 ; Strings
44 (string) @string
45
46 ; Labels
47 (label) @label