patch 9.0.2079: Not all Dart files detected

Commit: 
https://github.com/vim/vim/commit/c1c177a47bfe1b9a524ede2743a689e461668d14
Author: Doug Kearns <[email protected]>
Date:   Sat Oct 28 21:19:54 2023 +0200

    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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim
index fd7b8e08f..8de8296ee 100644
--- a/runtime/autoload/dist/script.vim
+++ b/runtime/autoload/dist/script.vim
@@ -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 ''
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 30c3a1ad8..bde5c1bc4 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -955,7 +955,8 @@ def s:GetScriptChecks(): dict<list<list<string>>>
     crystal: [['#!/path/crystal']],
     rexx:   [['#!/path/rexx'],
             ['#!/path/regina']],
-    janet: [['#!/path/janet']],
+    janet:  [['#!/path/janet']],
+    dart:   [['#!/path/dart']],
   }
 enddef
 
diff --git a/src/version.c b/src/version.c
index b127b6a86..fdfdf3f83 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2079,
 /**/
     2078,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qwp0a-009uGn-EB%40256bit.org.

Raspunde prin e-mail lui