On 12 December 2012 15:16, Robin Kaup <[email protected]> wrote: > On 12 December 2012 06:28, ramgorur <[email protected]>wrote: > >> Hi, >> >> In my vim syntax highlighting, I am having a long underline under certain >> keywords. Please see the snapshot here -- >> http://i.stack.imgur.com/HufRs.png >> >> Thanks in advance. >> >> -- >> You received this message from the "vim_use" maillist. >> Do not top-post! Type your reply below the text you are replying to. >> For more information, visit http://www.vim.org/maillist.php > > > Looks like you have a regex matching the start of lines with "^". Is this > the C++ syntax highlighting that comes with Vim? I suppose whoever wrote it > didn't anticipate someone using underlines in their color schemes. You > could work around it by changing your color scheme to not underline at all. > > Had a look in my $VIMRUNTIME/syntax/c.vim. These seem to be the offending lines:
syn cluster cLabelGroup contains=cUserLabel syn match cUserCont display "^\s*\I\i*\s*:$" contains=@cLabelGroup syn match cUserCont display ";\s*\I\i*\s*:$" contains=@cLabelGroup syn match cUserCont display "^\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup syn match cUserCont display ";\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup The syntax highlighter is probably matching the "^\s*" before your labels. Perhaps someone can think of a better regex for this? I can't. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
