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\>'
return 'janet'
# Dart
elseif name =~ '^dart\>'
return 'dart'
endif
return ''