mirror of
https://github.com/vim/vim.git
synced 2026-10-16 02:49:18 +02:00
Problem: filetype: hlsl files are not recognized
Solution: Detect *.hlsl files hlsl filetype, include
ftplugin, indent and syntax plugins, update
gvim menu (Maxim Kim)
Note to Neovim devs: runtime files are in vim9script
closes: #20993
Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
21 lines
416 B
VimL
21 lines
416 B
VimL
vim9script
|
|
# Language: HLSL (High-Level Shader Language)
|
|
# Maintainer: Maxim Kim <habamax@gmail.com>
|
|
# Last Change: 2026 Aug 11
|
|
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
b:did_ftplugin = 1
|
|
|
|
var undo_opts = "setl commentstring< comments<"
|
|
|
|
setlocal commentstring=//\ %s
|
|
setlocal comments=
|
|
|
|
if exists('b:undo_ftplugin')
|
|
b:undo_ftplugin ..= "|" .. undo_opts
|
|
else
|
|
b:undo_ftplugin = undo_opts
|
|
endif
|