diff options
Diffstat (limited to 'runtime/indent/php.vim')
-rw-r--r-- | runtime/indent/php.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/indent/php.vim b/runtime/indent/php.vim index 6241f4b19..10bb0f699 100644 --- a/runtime/indent/php.vim +++ b/runtime/indent/php.vim @@ -3,8 +3,8 @@ " Author: John Wellesz <John.wellesz (AT) teaser (DOT) fr> " URL: http://www.2072productions.com/vim/indent/php.vim " Home: https://github.com/2072/PHP-Indenting-for-VIm -" Last Change: 2013 May 10th -" Version: 1.37 +" Last Change: 2013 August 2nd +" Version: 1.38 " " " Type :help php-indent for available options @@ -303,7 +303,7 @@ function! FindTheSwitchIndent (lnum) " {{{ endfunction "}}} - +let s:SynPHPMatchGroups = {'phpParent':1, 'Delimiter':1, 'Define':1, 'Storageclass':1, 'Structure':1, 'Exception':1} function! IslinePHP (lnum, tofind) " {{{ let cline = getline(a:lnum) @@ -319,7 +319,7 @@ function! IslinePHP (lnum, tofind) " {{{ let synname = synIDattr(synID(a:lnum, coltotest, 0), "name") - if synname =~ '^php' || synname=="Delimiter" || synname =~? '^javaScript' + if get(s:SynPHPMatchGroups, synname) || synname =~ '^php' || synname =~? '^javaScript' return synname else return "" |