SOURCES: vim-phpscript.patch (NEW) - if first line starts with <?php -- it'...
glen
glen at pld-linux.org
Thu Oct 9 02:16:23 CEST 2008
Author: glen Date: Thu Oct 9 00:16:23 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- if first line starts with <?php -- it's a php script
---- Files affected:
SOURCES:
vim-phpscript.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/vim-phpscript.patch
diff -u /dev/null SOURCES/vim-phpscript.patch:1.1
--- /dev/null Thu Oct 9 02:16:23 2008
+++ SOURCES/vim-phpscript.patch Thu Oct 9 02:16:17 2008
@@ -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
================================================================
More information about the pld-cvs-commit
mailing list