Merge pull request #117 from ton/no_auto_completion_in_doxygen_comments
Fix auto completion being active within Doxygen comment blocks.
This commit is contained in:
commit
c5587d825b
@ -333,7 +333,7 @@ endfunction
|
|||||||
function! s:InsideCommentOrString()
|
function! s:InsideCommentOrString()
|
||||||
" Has to be col('.') -1 because col('.') doesn't exist at this point. We are
|
" Has to be col('.') -1 because col('.') doesn't exist at this point. We are
|
||||||
" in insert mode when this func is called.
|
" in insert mode when this func is called.
|
||||||
let syntax_group = synIDattr( synID( line( '.' ), col( '.' ) - 1, 1 ), 'name')
|
let syntax_group = synIDattr( synIDtrans( synID( line( '.' ), col( '.' ) - 1, 1 ) ), 'name')
|
||||||
if stridx(syntax_group, 'Comment') > -1 || stridx(syntax_group, 'String') > -1
|
if stridx(syntax_group, 'Comment') > -1 || stridx(syntax_group, 'String') > -1
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user