Skip to content

Commit

Permalink
patch 9.1.0236: filetype: texlua files are not recognized
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Freed-Wu authored and chrisbra committed Mar 31, 2024
1 parent 4ff83b9 commit a75f479
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions runtime/filetype.vim
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/testdir/test_filetype.vim
Expand Up @@ -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'],
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
236,
/**/
235,
/**/
Expand Down

0 comments on commit a75f479

Please sign in to comment.