1
0
forked from aniani/vim

patch 9.0.2079: Not all Dart files detected

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

closes: #13449

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2023-10-28 21:19:54 +02:00
committed by Christian Brabandt
parent feaccd2395
commit c1c177a47b
3 changed files with 8 additions and 1 deletions

View File

@@ -221,6 +221,10 @@ export def Exe2filetype(name: string, line1: string): string
elseif name =~ '^janet\>' elseif name =~ '^janet\>'
return 'janet' return 'janet'
# Dart
elseif name =~ '^dart\>'
return 'dart'
endif endif
return '' return ''

View File

@@ -956,6 +956,7 @@ def s:GetScriptChecks(): dict<list<list<string>>>
rexx: [['#!/path/rexx'], rexx: [['#!/path/rexx'],
['#!/path/regina']], ['#!/path/regina']],
janet: [['#!/path/janet']], janet: [['#!/path/janet']],
dart: [['#!/path/dart']],
} }
enddef enddef

View File

@@ -704,6 +704,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 */
/**/
2079,
/**/ /**/
2078, 2078,
/**/ /**/