]> git.pld-linux.org Git - packages/vim.git/commitdiff
- if first line starts with <?php -- it's a php script
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 9 Oct 2008 00:16:17 +0000 (00:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    vim-phpscript.patch -> 1.1

vim-phpscript.patch [new file with mode: 0644]

diff --git a/vim-phpscript.patch b/vim-phpscript.patch
new file mode 100644 (file)
index 0000000..e968fb1
--- /dev/null
@@ -0,0 +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
++    " PHP script tag
++  elseif s:line1 =~ '^<?php'
++    set ft=php
++
+     " RCS/CVS log output
+   elseif s:line1 =~ '^RCS file:' || s:line2 =~ '^RCS file:'
+     set ft=rcslog
This page took 0.036297 seconds and 4 git commands to generate.