Files
zeertzjqandMaxim Kim 965d4ccfe4 vim-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)

closes: vim/vim#20993

https://github.com/vim/vim/commit/11fca33162ad2e6a6365dbf6202fb1af0f21b7cb

Co-authored-by: Maxim Kim <habamax@gmail.com>
2026-09-25 08:33:24 +08:00

21 lines
451 B
VimL

" Converted from 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
let b:did_ftplugin = 1
let s:undo_opts = "setl commentstring< comments<"
setlocal commentstring=//\ %s
setlocal comments=
if exists('b:undo_ftplugin')
let b:undo_ftplugin ..= "|" .. s:undo_opts
else
let b:undo_ftplugin = s:undo_opts
endif