vim-patch:9.1.0610: filetype: OpenGL Shading Language files are not detected (#29831)

Problem:  filetype: OpenGL Shading Language files are not detected
Solution: detect various file extensions as GLSL filetype, include
          indent and syntax script, do no longer recognize '*.comp'
          as Mason filetype (Gregory Anders)

closes: vim/vim#15317

e4b991ed36
This commit is contained in:
Gregory Anders
2024-07-22 17:28:05 -05:00
committed by GitHub
parent f93ecd2760
commit 79d492a421
4 changed files with 780 additions and 3 deletions

View File

@@ -485,7 +485,19 @@ local extension = {
gift = 'gift',
prettierignore = 'gitignore',
gleam = 'gleam',
vert = 'glsl',
tesc = 'glsl',
tese = 'glsl',
glsl = 'glsl',
geom = 'glsl',
frag = 'glsl',
comp = 'glsl',
rgen = 'glsl',
rmiss = 'glsl',
rchit = 'glsl',
rahit = 'glsl',
rint = 'glsl',
rcall = 'glsl',
gn = 'gn',
gni = 'gn',
gnuplot = 'gnuplot',
@@ -695,7 +707,6 @@ local extension = {
markdown = detect.markdown,
mdown = detect.markdown,
mhtml = 'mason',
comp = 'mason',
mason = 'mason',
master = 'master',
mas = 'master',