From b1aed2b40acad82546aa9769695b2aa88e91717b Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 11 Jun 2025 09:42:56 +0200 Subject: [PATCH] vim-patch:572d460: runtime(gdshader): add comments and commentstring to ftplugin closes: vim/vim#17500 https://github.com/vim/vim/commit/572d46035f257a483b2ad53d2dbbb0967f515bcf Co-authored-by: Maxim Kim Co-authored-by: Riley Bruins --- 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 f0d34ee5a6..9542db910a 100644 --- a/runtime/ftplugin/gdshader.vim +++ b/runtime/ftplugin/gdshader.vim @@ -2,12 +2,15 @@ " Language: Godot shading language " Maintainer: Maxim Kim " Website: https://github.com/habamax/vim-gdscript +" Last Update: 2025-06-09 " " This file has been manually translated from Vim9 script. if exists("b:did_ftplugin") | finish | endif let b:did_ftplugin = 1 -let b:undo_ftplugin = 'setlocal suffixesadd<' +let b:undo_ftplugin = 'setlocal suffixesadd< comments< commentstring<' setlocal suffixesadd=.gdshader +setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// +setlocal commentstring=//\ %s