]> git.pld-linux.org Git - packages/vim.git/blame - vim-phpscript.patch
rebuild with perl 5.34.0
[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 @@
1eeb3fe4 4 elseif s:line1 =~# '^\x\{7}: \x\{2} \=\x\{2} \=\x\{2} \=\x\{2} '
6424cb12
ER
5 set ft=xxd
6
7+ " PHP script tag
8+ elseif s:line1 =~ '^<?php'
9+ set ft=php
10+
11 " RCS/CVS log output
1eeb3fe4 12 elseif s:line1 =~# '^RCS file:' || s:line2 =~# '^RCS file:'
6424cb12 13 set ft=rcslog
2db8c968
ER
14--- vim73/runtime/filetype.vim~ 2010-10-31 13:26:19.000000000 +0200
15+++ vim73/runtime/filetype.vim 2010-10-31 13:27:17.615314321 +0200
16@@ -1326,7 +1326,8 @@
17 " Php, php3, php4, etc.
18 " Also Phtml (was used for PHP 2 in the past)
19 " Also .ctp for Cake template file
20-au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp setf php
21+" Also .phpt for PHP Test files
22+au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp,*.phpt setf php
23
1eeb3fe4
JP
24 " PHP config
25 au BufNewFile,BufRead php.ini-* setf dosini
This page took 0.084841 seconds and 4 git commands to generate.