Commit: patch 9.1.0236: filetype: texlua files are not recognized

7 views
Skip to first unread message

Christian Brabandt

unread,
Mar 31, 2024, 1:15:11 PM3/31/24
to vim...@googlegroups.com
patch 9.1.0236: filetype: texlua files are not recognized

Commit: https://github.com/vim/vim/commit/a75f4791b147db60a1d2744bb5ab7326e0c0edc0
Author: Wu, Zhenyu <wuzh...@ustc.edu>
Date: Sun Mar 31 19:02:26 2024 +0200

patch 9.1.0236: filetype: texlua files are not recognized

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 <wuzh...@ustc.edu>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 67dd9a4e5..7c4d109ff 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 6a891a4b0..df3803886 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index 439c4e716..ccc4e8358 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 236,
/**/
235,
/**/
Reply all
Reply to author
Forward
0 new messages