]> git.pld-linux.org Git - packages/vim.git/blobdiff - vim-phpscript.patch
up to 9.0.1664
[packages/vim.git] / vim-phpscript.patch
index e968fb104bd43d161dd942a5e1b83b11c9c6b7e9..8c7f07a551c41ed712bb005c0d987d9664b8b6de 100644 (file)
@@ -1,13 +1,13 @@
---- vim72/runtime/scripts.vim~ 2008-10-09 03:12:50.000000000 +0300
-+++ vim72/runtime/scripts.vim  2008-10-09 03:12:54.703954160 +0300
-@@ -246,6 +246,10 @@
-   elseif s:line1 =~ '^\x\{7}: \x\{2} \=\x\{2} \=\x\{2} \=\x\{2} '
-     set ft=xxd
+--- vim-8.2.4726/runtime/autoload/dist/script.vim~     2022-04-09 22:42:10.000000000 +0200
++++ vim-8.2.4726/runtime/autoload/dist/script.vim      2022-04-10 12:01:55.436645032 +0200
+@@ -297,6 +297,10 @@ def DetectFromText(line1: string)
+   elseif line1 =~ '^\x\{7}: \x\{2} \=\x\{2} \=\x\{2} \=\x\{2} '
+     setl ft=xxd
  
-+    " PHP script tag
-+  elseif s:line1 =~ '^<?php'
-+    set ft=php
++    # PHP script tag
++  elseif line1 =~ '^<?php'
++     setl ft=php
 +
-     " RCS/CVS log output
-   elseif s:line1 =~ '^RCS file:' || s:line2 =~ '^RCS file:'
-     set ft=rcslog
+     # RCS/CVS log output
+   elseif line1 =~ '^RCS file:' || line2 =~ '^RCS file:'
+     setl ft=rcslog
This page took 0.047351 seconds and 4 git commands to generate.