vim-patch:9.0.1503: Luau files are not recognized (#23412)

Problem:    Luau files are not recognized.
Solution:   Add a patter for Luau files. (Amaan Qureshi, closes vim/vim#12317)

2dcfe9ae1d

Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
This commit is contained in:
Christian Clason
2023-05-01 10:55:51 +02:00
committed by GitHub
parent 5e31f53457
commit 37dd818722
2 changed files with 2 additions and 0 deletions

View File

@@ -637,6 +637,7 @@ local extension = {
nse = 'lua',
rockspec = 'lua',
lua = 'lua',
luau = 'luau',
lrc = 'lyrics',
m = function(path, bufnr)
return require('vim.filetype.detect').m(bufnr)

View File

@@ -346,6 +346,7 @@ let s:filename_checks = {
\ 'lsl': ['file.lsl'],
\ 'lss': ['file.lss'],
\ 'lua': ['file.lua', 'file.rockspec', 'file.nse', '.luacheckrc', '.busted'],
\ 'luau': ['file.luau'],
\ 'lynx': ['lynx.cfg'],
\ 'lyrics': ['file.lrc'],
\ 'm3build': ['m3makefile', 'm3overrides'],