Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/ptx/highlights.scm')
| -rw-r--r-- | runtime/queries/ptx/highlights.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/runtime/queries/ptx/highlights.scm b/runtime/queries/ptx/highlights.scm new file mode 100644 index 00000000..32dced3b --- /dev/null +++ b/runtime/queries/ptx/highlights.scm @@ -0,0 +1,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 |