From 572d46035f257a483b2ad53d2dbbb0967f515bcf Mon Sep 17 00:00:00 2001 From: Maxim Kim Date: Tue, 10 Jun 2025 20:35:03 +0200 Subject: [PATCH] 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 --- runtime/ftplugin/gdshader.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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