patch 9.1.0236: filetype: texlua files are not recognized
Commit:
https://github.com/vim/vim/commit/a75f4791b147db60a1d2744bb5ab7326e0c0edc0
Author: Wu, Zhenyu <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1rqylr-000LeK-Jt%40256bit.org.