File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ let s:php_regex_func_line = '^\s*\%(\%(private\|protected\|public\|static\|abs
8787let s: php_regex_local_var = ' \$\<\%(this\>\)\@![A-Za-z0-9]*'
8888let s: php_regex_assignment = ' +=\|-=\|*=\|/=\|=\~\|!=\|='
8989let s: php_regex_fqcn = ' [\\_A-Za-z0-9]*'
90- let s: php_regex_cn = ' [_A-Za-z0-9]\+$ '
90+ let s: php_regex_cn = ' [_A-Za-z0-9]\+'
9191" }}}
9292
9393function ! PhpDocAll () " {{{
@@ -453,12 +453,12 @@ function! s:PhpGetFQCNUnderCursor() " {{{
453453 let l: line = getbufline (" %" , line (' .' ))[0 ]
454454 let l: lineStart = strpart (l: line , 0 , col (' .' ))
455455 let l: lineEnd = strpart (l: line , col (' .' ), strlen (l: line ) - col (' .' ))
456- return matchstr (l: lineStart , s: php_regex_fqcn . ' $' ) . matchstr (l: lineEnd , ' ^' . s: php_regex_fqcn )
456+ return matchstr (l: lineStart , s: php_regex_fqcn . ' $' ) . matchstr (l: lineEnd , ' ^' . s: php_regex_cn )
457457endfunction
458458" }}}
459459
460460function ! s: PhpGetShortClassName (fqcn) " {{{
461- return matchstr (a: fqcn , s: php_regex_cn )
461+ return matchstr (a: fqcn , s: php_regex_cn . ' $ ' )
462462endfunction
463463" }}}
464464
You can’t perform that action at this time.
0 commit comments