]>
Commit | Line | Data |
---|---|---|
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 | |
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 | ||
24 | " Pike | |
25 | au BufNewFile,BufRead *.pike,*.lpc,*.ulpc,*.pmod setf pike |