Skip to content

Commit

Permalink
Merge pull request #33 from dsawardekar/develop
Browse files Browse the repository at this point in the history
Changes &filetype check for matching php pattern
  • Loading branch information
2072 committed Apr 23, 2014
2 parents 260dfde + 609738b commit fd28471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indent/php.vim
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ let s:PHP_startindenttag = '<?\%(.*?>\)\@!\|<script[^>]*>\%(.*<\/script>\)\@!'
let s:escapeDebugStops = 0
function! DebugPrintReturn(scriptLine)

if ! s:escapeDebugStops
if ! s:escapeDebugStops
echo "debug:" . a:scriptLine
let c = getchar()
if c == "\<Del>"
Expand Down Expand Up @@ -597,7 +597,7 @@ function! FindOpenBracket(lnum, blockStarter) " {{{
let line = searchpair('{', '', '}', 'bW', 'Skippmatch()')

if a:blockStarter == 1
while line > 1
while line > 1
let linec = getline(line)

if linec =~ s:terminated || linec =~ '^\s*\%(' . s:blockstart . '\)\|'. s:functionDecl . s:endline
Expand Down Expand Up @@ -758,7 +758,7 @@ if ! s:autoresetoptions
endif

function! ResetPhpOptions()
if ! b:optionsset && &filetype == "php"
if ! b:optionsset && &filetype =~ "php"
if b:PHP_autoformatcomment

" Set the comment setting to something correct for PHP
Expand Down

0 comments on commit fd28471

Please sign in to comment.