mirror of
https://github.com/vim/vim
synced 2025-07-15 16:51:57 +00:00
runtime(gdshader): add comments and commentstring to ftplugin
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>
This commit is contained in:
committed by
Christian Brabandt
parent
a304e49790
commit
572d46035f
@ -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
|
||||
|
Reference in New Issue
Block a user