]> granicus.if.org Git - vim/commitdiff
patch 8.2.3600: filetype test fails v8.2.3600
authorBram Moolenaar <Bram@vim.org>
Tue, 16 Nov 2021 11:53:13 +0000 (11:53 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 16 Nov 2021 11:53:13 +0000 (11:53 +0000)
Problem:    Filetype test fails.
Solution:   Add missint change.

runtime/scripts.vim
src/version.c

index 0b3fdc351463ececb34c4513940cad765c869269..79fd0a77e90695ff7000c646fcd97d9ff2aaaa41 100644 (file)
@@ -190,6 +190,10 @@ if s:line1 =~# "^#!"
   elseif s:name =~# 'fennel\>'
     set ft=fennel
 
+    " MikroTik RouterOS script
+  elseif s:name =~# 'rsc\>'
+    set ft=routeros
+
   endif
   unlet s:name
 
@@ -390,6 +394,10 @@ else
   elseif s:line1 =~# '^%YAML'
     set ft=yaml
 
+  " MikroTik RouterOS script
+  elseif s:line1 =~# '^#.*by RouterOS.*$'
+    set ft=routeros
+
   " CVS diff
   else
     let s:lnum = 1
index cb1599d397111610af32b037e1f53fce765025e6..acc7a9b10fd6200134b1132540d4b87bc643fb20 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3600,
 /**/
     3599,
 /**/