From: Maxim Kim Date: Tue, 10 Jun 2025 18:35:03 +0000 (+0200) Subject: runtime(gdshader): add comments and commentstring to ftplugin X-Git-Tag: v9.1.1451~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=572d46035f257a483b2ad53d2dbbb0967f515bcf;p=thirdparty%2Fvim.git runtime(gdshader): add comments and commentstring to ftplugin closes: #17500 Co-authored-by: Riley Bruins Signed-off-by: Maxim Kim Signed-off-by: Christian Brabandt --- diff --git a/runtime/ftplugin/gdshader.vim b/runtime/ftplugin/gdshader.vim index 809a005675..a66c6cf7b0 100644 --- a/runtime/ftplugin/gdshader.vim +++ b/runtime/ftplugin/gdshader.vim @@ -4,10 +4,13 @@ vim9script # Language: Godot shading language # Maintainer: Maxim Kim # Website: https://github.com/habamax/vim-gdscript +# Last Update: 2025-06-09 if exists("b:did_ftplugin") | finish | endif b:did_ftplugin = 1 -b:undo_ftplugin = 'setlocal suffixesadd<' +b:undo_ftplugin = 'setlocal suffixesadd< comments< commentstring<' setlocal suffixesadd=.gdshader +setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// +setlocal commentstring=//\ %s