diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-05-01 10:55:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 10:55:51 +0200 |
commit | 37dd818722c50a5dbe0771a88a1cdaf98d9596b5 (patch) | |
tree | b258631a50d5b17dcff9712a151ef5e667ead545 | |
parent | 5e31f53457c1feceb57a55734508c37d07e255b4 (diff) | |
download | rneovim-37dd818722c50a5dbe0771a88a1cdaf98d9596b5.tar.gz rneovim-37dd818722c50a5dbe0771a88a1cdaf98d9596b5.tar.bz2 rneovim-37dd818722c50a5dbe0771a88a1cdaf98d9596b5.zip |
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)
https://github.com/vim/vim/commit/2dcfe9ae1df61e1249520ed435dd8cf60e157103
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 4fafc4e2e2..5c799b23f2 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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) diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 789430fc84..2d7a24090f 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -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'], |