]> git.pld-linux.org Git - packages/vim.git/blame - vim-phpscript.patch
- if first line starts with <?php -- it's a php script
[packages/vim.git] / vim-phpscript.patch
CommitLineData
6424cb12
ER
1--- vim72/runtime/scripts.vim~ 2008-10-09 03:12:50.000000000 +0300
2+++ vim72/runtime/scripts.vim 2008-10-09 03:12:54.703954160 +0300
3@@ -246,6 +246,10 @@
4 elseif s:line1 =~ '^\x\{7}: \x\{2} \=\x\{2} \=\x\{2} \=\x\{2} '
5 set ft=xxd
6
7+ " PHP script tag
8+ elseif s:line1 =~ '^<?php'
9+ set ft=php
10+
11 " RCS/CVS log output
12 elseif s:line1 =~ '^RCS file:' || s:line2 =~ '^RCS file:'
13 set ft=rcslog
This page took 0.034118 seconds and 4 git commands to generate.