1
0
mirror of https://github.com/helix-editor/helix synced 2026-03-27 15:31:58 +01:00
helix/runtime/queries/ptx/highlights.scm
Jer 045ee0af72
PTX support (#15052)
Co-authored-by: Kristoffer Plagborg Bak Sørensen <57013304+kpbaks@users.noreply.github.com>
2026-03-14 11:48:21 -05:00

48 lines
683 B
Scheme

; 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