Files
Maxim Kim 11fca33162 patch 9.2.0934: filetype: hlsl files are not recognized
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>
2026-08-11 18:03:33 +00:00

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