vim-patch:9.0.2079: Not all Dart files detected

Problem:  Not all Dart files detected
Solution: Add shebang filetype detection for Dart

closes: vim/vim#13449

c1c177a47b

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
Christian Clason 2023-10-28 23:51:02 +02:00
parent a2a1a65b98
commit c34e816608
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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.