From 79d492a4218ee6b4da5becbebb712a0f1f65d0f5 Mon Sep 17 00:00:00 2001 From: Gregory Anders <8965202+gpanders@users.noreply.github.com> Date: Mon, 22 Jul 2024 17:28:05 -0500 Subject: 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 https://github.com/vim/vim/commit/e4b991ed36f96dd01c6d75e46a04fd1a99180e58 --- runtime/lua/vim/filetype.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index ea4fa4d2a2..229f989229 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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', -- cgit