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
; highlights.scm - Syntax highlighting for PTX

; Comments
(comment) @comment

; Directives
(version_directive) @keyword
(target_directive) @keyword
(address_size_directive) @keyword
(file_directive) @keyword
(section_directive) @keyword
(visibility_directive) @keyword
(pragma_directive) @keyword

; Keywords
[
  ".global"
  ".const"
  ".param"
  ".local"
  ".shared"
  ".tex"
  ".func"
  ".entry"
] @keyword

; Types
(data_type) @type

; Instructions
(opcode) @function

; Identifiers
(identifier) @variable

; Registers
(register) @variable

; Numbers
(number) @constant.numeric.integer
(float_literal) @constant.numeric.float

; Strings
(string) @string

; Labels
(label) @label