diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-08-03 18:35:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-08-03 18:35:36 +0200 |
commit | 9d98fe9cae372d84d0b1f6b56eee4615c91b1307 (patch) | |
tree | 0f3f6df92038bc9f662e5027f5b05e51fc400bc8 /runtime/indent/php.vim | |
parent | f40f4ab8df0bb52a2d5f684d961b7c932c30e5df (diff) | |
download | vim-9d98fe9cae372d84d0b1f6b56eee4615c91b1307.zip |
Update runtime files.
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 "" |