mirror of
https://github.com/neovim/neovim.git
synced 2026-11-06 13:26:57 +00: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)
closes: vim/vim#20993
https://github.com/vim/vim/commit/11fca33162ad2e6a6365dbf6202fb1af0f21b7cb
Co-authored-by: Maxim Kim <habamax@gmail.com>
21 lines
451 B
VimL
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
|