File: ptx.vim

package info (click to toggle)
neovim 0.11.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 64,320 kB
  • sloc: ansic: 264,714; python: 1,472; lisp: 1,237; sh: 1,137; makefile: 383; xml: 85; ruby: 6
file content (16 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" Vim filetype plugin file
" Language:	Nvidia PTX (Parellel Thread Execution)
" Maintainer:	Yinzuo Jiang <jiangyinzuo@foxmail.com>
" Last Change:	2024-12-05

if exists("b:did_ftplugin")
  finish
endif

let b:did_ftplugin = 1

" Comments in PTX follow C/C++ syntax
" See: https://docs.nvidia.com/cuda/parallel-thread-execution/#syntax
setlocal commentstring=//\ %s

let b:undo_ftplugin = 'setl commentstring<'