summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/ftplugin/gdshader.vim
blob: 9542db910a2dbb07e8e112c43db58f99fc29bcad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" Vim filetype plugin file
" Language: Godot shading language
" Maintainer: Maxim Kim <habamax@gmail.com>
" 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< comments< commentstring<'

setlocal suffixesadd=.gdshader
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
setlocal commentstring=//\ %s