]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0236: filetype: texlua files are not recognized v9.1.0236
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Sun, 31 Mar 2024 17:02:26 +0000 (19:02 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 17:02:26 +0000 (19:02 +0200)
Problem:  filetype: texlua files are not recognized
Solution: Add '*.tlu' pattern for texlua files (Wu, Zhenyu)

Reference: https://github.com/TeX-Live/texdoc/tree/master/script

closes: #14357

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 67dd9a4e5276f8eb83c7d1e24c7abda50f88e4d8..7c4d109ffbda9c01b09a4f046c03192a7d26a440 100644 (file)
@@ -1241,8 +1241,8 @@ au BufNewFile,BufRead *.lot,*.lotos               setf lotos
 " Lout (also: *.lt)
 au BufNewFile,BufRead *.lou,*.lout             setf lout
 
-" Lua
-au BufNewFile,BufRead *.lua                    setf lua
+" Lua, Texlua
+au BufNewFile,BufRead *.lua,*.tlu              setf lua
 
 " Luau
 au BufNewFile,BufRead *.luau           setf luau
index 6a891a4b0bbd88051da32be014b4859352b56acc..df38038862e04c3f9abbc90d41246e581f25ab6e 100644 (file)
@@ -396,7 +396,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     lpc: ['file.lpc', 'file.ulpc'],
     lsl: ['file.lsl'],
     lss: ['file.lss'],
-    lua: ['file.lua', 'file.rockspec', 'file.nse', '.luacheckrc', '.busted'],
+    lua: ['file.lua', 'file.tlu', 'file.rockspec', 'file.nse', '.luacheckrc', '.busted'],
     luau: ['file.luau'],
     lynx: ['lynx.cfg'],
     lyrics: ['file.lrc'],
index 439c4e716d8ffc1107281624dcf1750df432c2fc..ccc4e83583e68483791e07af91b24a171e7f60c9 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    236,
 /**/
     235,
 /**/