diff options
-rw-r--r-- | runtime/lua/vim/filetype/detect.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua index e53ff08536..2232183888 100644 --- a/runtime/lua/vim/filetype/detect.lua +++ b/runtime/lua/vim/filetype/detect.lua @@ -1655,6 +1655,7 @@ local patterns_hashbang = { ['^crystal\\>'] = { 'crystal', { vim_regex = true } }, ['^\\%(rexx\\|regina\\)\\>'] = { 'rexx', { vim_regex = true } }, ['^janet\\>'] = { 'janet', { vim_regex = true } }, + ['^dart\\>'] = { 'dart', { vim_regex = true } }, } ---@private diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 6fb6ea4ffa..a7144f7590 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -866,7 +866,8 @@ let s:script_checks = { \ 'crystal': [['#!/path/crystal']], \ 'rexx': [['#!/path/rexx'], \ ['#!/path/regina']], - \ 'janet': [['#!/path/janet']], + \ 'janet': [['#!/path/janet']], + \ 'dart': [['#!/path/dart']], \ } " Various forms of "env" optional arguments. |