1
0
forked from aniani/vim

patch 9.1.0995: filetype: shaderslang files are not detected

Problem:  filetype: shaderslang files are not detected
Solution: detect '*.slang' files as shaderslang filetype,
          include a filetype and syntax script (mtvare6)

Reference:
https://shader-slang.com/

closes: #16387

Signed-off-by: mtvare6 <mtvare6@proton.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
mtvare6
2025-01-07 20:31:27 +01:00
committed by Christian Brabandt
parent 0072ceedc6
commit 616219f684
6 changed files with 423 additions and 1 deletions

View File

@@ -2185,7 +2185,7 @@ au BufNewFile,BufRead [rR]antfile,*.rant,[rR]akefile,*.rake setf ruby
au BufNewFile,BufRead *.rs setf rust
au BufNewFile,BufRead Cargo.lock,*/.cargo/config,*/.cargo/credentials setf toml
" S-lang (or shader language, or SmallLisp)
" S-lang
au BufNewFile,BufRead *.sl setf slang
" Sage
@@ -2209,6 +2209,9 @@ au BufNewFile,BufRead *.scala setf scala
" SBT - Scala Build Tool
au BufNewFile,BufRead *.sbt setf sbt
" Slang Shading Language
au BufNewFile,BufRead *.slang setf shaderslang
" Slint
au BufNewFile,BufRead *.slint setf slint