diff src/testdir/test_filetype.vim @ 27132:0b5ce27d8b68 v8.2.4095

patch 8.2.4095: sed script not recognized by the first line Commit: https://github.com/vim/vim/commit/e3ce17a3ca838954728df21ccb6c2a724490203d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 15 12:27:09 2022 +0000 patch 8.2.4095: sed script not recognized by the first line Problem: Sed script not recognized by the first line. Solution: Recognize a sed script starting with "#n". (Doug Kearns)
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Jan 2022 13:30:03 +0100
parents d539c144aeb4
children 9f72ec92d361
line wrap: on
line diff
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -654,7 +654,7 @@ let s:script_checks = {
       \                ['#!/path/nodejs'],
       \                ['#!/path/rhino']],
       \ 'bc': [['#!/path/bc']],
-      \ 'sed': [['#!/path/sed']],
+      \ 'sed': [['#!/path/sed'], ['#n'], ['#n comment']],
       \ 'ocaml': [['#!/path/ocaml']],
       \ 'awk': [['#!/path/awk'],
       \         ['#!/path/gawk']],