The current syntax file for sh.vim defines (line 245): ShFoldIfDoFor syn region shIf transparent matchgroup=shConditional start="\<if\_s" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>" contains=@shIfList
The "\<if\_s" includes the space in the region. It should be: ShFoldIfDoFor syn region shIf transparent matchgroup=shConditional start="\<if\>" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>" contains=@shIfList "\<if\>" properly defines the word boundary. This is not an issue with pretty much every colorscheme out there, which apply syntax highlighting with fg colors. I only caught this with a colorscheme that syntax highlights using bg colors. -- -- You received this message from the "vim_dev" 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
