Mercurial > vim
changeset 35587:4ad4bcd59ace
runtime(cuda): include CUDA ftplugin file
Commit: https://github.com/vim/vim/commit/f5398c8975b19341831752b549b35ac5a540c91a
Author: Riley Bruins <ribru17@hotmail.com>
Date: Sun Jul 7 20:56:43 2024 +0200
runtime(cuda): include CUDA ftplugin file
closes: https://github.com/vim/vim/issues/15159
Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 07 Jul 2024 21:00:16 +0200 |
parents | 06198707fd83 |
children | c91ddb3c8ed6 |
files | .github/MAINTAINERS runtime/ftplugin/cuda.vim |
diffstat | 2 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.github/MAINTAINERS +++ b/.github/MAINTAINERS @@ -123,6 +123,7 @@ runtime/ftplugin/csh.vim @dkearns runtime/ftplugin/css.vim @dkearns runtime/ftplugin/csv.vim @habamax runtime/ftplugin/cucumber.vim @tpope +runtime/ftplugin/cuda.vim @ribru17 runtime/ftplugin/dart.vim @ribru17 runtime/ftplugin/deb822sources.vim @jamessan runtime/ftplugin/debchangelog.vim @jamessan
new file mode 100644 --- /dev/null +++ b/runtime/ftplugin/cuda.vim @@ -0,0 +1,16 @@ +" Vim filetype plugin +" Language: CUDA +" Maintainer: Riley Bruins <ribru17@gmail.com> +" Last Change: 2024 Jul 06 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +" Set 'comments' to format dashed lists in comments. +" Also include ///, used for Doxygen. +setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// +setlocal commentstring=//\ %s + +let b:undo_ftplugin = 'setl com< cms<'