]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(gdshader): add comments and commentstring to ftplugin
authorMaxim Kim <habamax@gmail.com>
Tue, 10 Jun 2025 18:35:03 +0000 (20:35 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 10 Jun 2025 18:35:03 +0000 (20:35 +0200)
closes: #17500

Co-authored-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/gdshader.vim

index 809a005675011cf9648504d74a1af065661f3227..a66c6cf7b0de0b11312cc8bcc9f9554797fb321a 100644 (file)
@@ -4,10 +4,13 @@ vim9script
 # Language: Godot shading language
 # Maintainer: Maxim Kim <habamax@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