commit 2e0233d003710c91d513cce5074f6f4b9970e5ee
parent 96d77b2051a660e79d2d57c33d6c2b448d996838
Author: Christian Clason <c.clason@uni-graz.at>
Date: Sun, 31 Mar 2024 19:06:13 +0200
vim-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: vim/vim#14357
https://github.com/vim/vim/commit/a75f4791b147db60a1d2744bb5ab7326e0c0edc0
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
@@ -637,6 +637,7 @@ local extension = {
nse = 'lua',
rockspec = 'lua',
lua = 'lua',
+ tlu = 'lua',
luau = 'luau',
lrc = 'lyrics',
m = detect.m,
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
@@ -386,7 +386,7 @@ func s:GetFilenameChecks() abort
\ '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'],