mirror of
https://github.com/vim/vim.git
synced 2025-10-10 06:24:10 -04:00
patch 9.0.1503: Luau files are not recognized
Problem: Luau files are not recognized. Solution: Add a patter for Luau files. (Amaan Qureshi, closes #12317)
This commit is contained in:
committed by
Bram Moolenaar
parent
5b10a14098
commit
2dcfe9ae1d
@@ -1190,6 +1190,9 @@ au BufNewFile,BufRead *.lou,*.lout setf lout
|
|||||||
" Lua
|
" Lua
|
||||||
au BufNewFile,BufRead *.lua setf lua
|
au BufNewFile,BufRead *.lua setf lua
|
||||||
|
|
||||||
|
" Luau
|
||||||
|
au BufNewFile,BufRead *.luau setf luau
|
||||||
|
|
||||||
" Luacheck
|
" Luacheck
|
||||||
au BufNewFile,BufRead .luacheckrc setf lua
|
au BufNewFile,BufRead .luacheckrc setf lua
|
||||||
|
|
||||||
|
@@ -346,6 +346,7 @@ let s:filename_checks = {
|
|||||||
\ 'lsl': ['file.lsl'],
|
\ 'lsl': ['file.lsl'],
|
||||||
\ 'lss': ['file.lss'],
|
\ 'lss': ['file.lss'],
|
||||||
\ 'lua': ['file.lua', 'file.rockspec', 'file.nse', '.luacheckrc', '.busted'],
|
\ 'lua': ['file.lua', 'file.rockspec', 'file.nse', '.luacheckrc', '.busted'],
|
||||||
|
\ 'luau': ['file.luau'],
|
||||||
\ 'lynx': ['lynx.cfg'],
|
\ 'lynx': ['lynx.cfg'],
|
||||||
\ 'lyrics': ['file.lrc'],
|
\ 'lyrics': ['file.lrc'],
|
||||||
\ 'm3build': ['m3makefile', 'm3overrides'],
|
\ 'm3build': ['m3makefile', 'm3overrides'],
|
||||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1503,
|
||||||
/**/
|
/**/
|
||||||
1502,
|
1502,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user