summaryrefslogtreecommitdiff
path: root/mnv/runtime/ftplugin/ptx.mnv
blob: 19c2e5fe7961fac11924e2983a597fdc239630b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" MNV 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<'