From c3a6ac270bf287fc13c1fc87492f81dcb44e7cc3 Mon Sep 17 00:00:00 2001 From: Ton van den Heuvel Date: Fri, 15 Feb 2013 11:18:55 +0100 Subject: [PATCH] Fix auto completion being active within Doxygen comment blocks. --- autoload/youcompleteme.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 2284a578..c817eaec 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -333,7 +333,7 @@ endfunction function! s:InsideCommentOrString() " Has to be col('.') -1 because col('.') doesn't exist at this point. We are " 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 return 1 endif