aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2024-07-22 17:28:05 -0500
committerGitHub <noreply@github.com>2024-07-23 06:28:05 +0800
commit79d492a4218ee6b4da5becbebb712a0f1f65d0f5 (patch)
tree048bfad3f00cef2802180012f4de172eda19f89d /runtime/lua/vim
parentf93ecd2760f5859fd5eeec28c7c2196ece98e9a1 (diff)
downloadrneovim-79d492a4218ee6b4da5becbebb712a0f1f65d0f5.tar.gz
rneovim-79d492a4218ee6b4da5becbebb712a0f1f65d0f5.tar.bz2
rneovim-79d492a4218ee6b4da5becbebb712a0f1f65d0f5.zip
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
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua13
1 files changed, 12 insertions, 1 deletions
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',