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:
committed by
Christian Brabandt
parent
feaccd2395
commit
c1c177a47b
4
runtime/autoload/dist/script.vim
vendored
4
runtime/autoload/dist/script.vim
vendored
@@ -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 ''
|
||||||
|
@@ -955,7 +955,8 @@ def s:GetScriptChecks(): dict<list<list<string>>>
|
|||||||
crystal: [['#!/path/crystal']],
|
crystal: [['#!/path/crystal']],
|
||||||
rexx: [['#!/path/rexx'],
|
rexx: [['#!/path/rexx'],
|
||||||
['#!/path/regina']],
|
['#!/path/regina']],
|
||||||
janet: [['#!/path/janet']],
|
janet: [['#!/path/janet']],
|
||||||
|
dart: [['#!/path/dart']],
|
||||||
}
|
}
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user