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

a75f4791b1

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Christian Clason 2024-03-31 19:06:13 +02:00
parent 96d77b2051
commit 2e0233d003
2 changed files with 2 additions and 1 deletions

View File

@ -637,6 +637,7 @@ local extension = {
nse = 'lua',
rockspec = 'lua',
lua = 'lua',
tlu = 'lua',
luau = 'luau',
lrc = 'lyrics',
m = detect.m,

View File

@ -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'],