Groups
Groups
Sign in
Groups
Groups
vim_dev
Conversations
About
Send feedback
Help
Commit: runtime(gdshader): add comments and commentstring to ftplugin
1 view
Skip to first unread message
Christian Brabandt
unread,
Jun 10, 2025, 2:45:15 PM
6/10/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
runtime(gdshader): add comments and commentstring to ftplugin
Commit:
https://github.com/vim/vim/commit/572d46035f257a483b2ad53d2dbbb0967f515bcf
Author: Maxim Kim <
hab...@gmail.com
>
Date: Tue Jun 10 20:35:03 2025 +0200
runtime(gdshader): add comments and commentstring to ftplugin
closes:
https://github.com/vim/vim/issues/17500
Co-authored-by: Riley Bruins <
rib...@hotmail.com
>
Signed-off-by: Maxim Kim <
hab...@gmail.com
>
Signed-off-by: Christian Brabandt <
c...@256bit.org
>
diff --git a/runtime/ftplugin/gdshader.vim b/runtime/ftplugin/gdshader.vim
index 809a00567..a66c6cf7b 100644
--- a/runtime/ftplugin/gdshader.vim
+++ b/runtime/ftplugin/gdshader.vim
@@ -4,10 +4,13 @@ vim9script
# Language: Godot shading language
# Maintainer: Maxim Kim <
hab...@gmail.com
>
# 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
Reply all
Reply to author
Forward
0 new messages