Tuesday, October 1, 2013

Skip includes in comment with checkpath option.

Hi,

 

I would like checkpath option with VIM.

 

My include definition is:

setlocal include=\\<\\c^*include\\s*,\\s*input\\s*=

setlocal includeexpr=substitute(v:fname,'.*=','','')

 

It works fine, now I want to skip include which are in comment line.

Comment line is each line which start with **.

So I went with:

setlocal comments+=”:**”

 

But it does not work. When I use checkpath option VIM is checking all include definition also those in comment line.

 

How can I ask VIM to not check includes in comment line?

 

Thanks & Regards,

Bartosz

 

No comments:

Post a Comment