mirror of
https://github.com/helix-editor/helix
synced 2026-03-27 15:31:58 +01:00
Co-authored-by: Kristoffer Plagborg Bak Sørensen <57013304+kpbaks@users.noreply.github.com>
48 lines
683 B
Scheme
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
|