mirror of
https://github.com/neovim/neovim.git
synced 2026-11-03 12:49:53 -06:00
Problem: filetype: Nvidia PTX files are not recognized Solution: detect '*.ptx' files as ptx filetype (Yinzuo Jiang) Reference: https://docs.nvidia.com/cuda/parallel-thread-execution/ closes: vim/vim#16171 https://github.com/vim/vim/commit/bdb5f85a5189534653f36e92b1bc780ca8d25218 Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
17 lines
409 B
VimL
17 lines
409 B
VimL
" 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<'
|