robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Christian Clasonvim-patch:572d460: runtime(gdshader): add comments and commentstring to ftpluginb1aed2b40a

master
510 B16 linesraw
1" Vim filetype plugin file
2" Language: Godot shading language
3" Maintainer: Maxim Kim <habamax@gmail.com>
4" Website: https://github.com/habamax/vim-gdscript
5" Last Update: 2025-06-09
6"
7" This file has been manually translated from Vim9 script.
8
9if exists("b:did_ftplugin") | finish | endif
10let b:did_ftplugin = 1
11
12let b:undo_ftplugin = 'setlocal suffixesadd< comments< commentstring<'
13
14setlocal suffixesadd=.gdshader
15setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
16setlocal commentstring=//\ %s