You are not logged in.

#1 2010-05-27 16:51:21

justinnhli
Member
Registered: 2009-04-05
Posts: 10

vim complex syntax highlight

I'm trying to create a vim syntax file for writing. I'm detecting matching quote marks so I change the color of quotes, and I'm also detecting plain text stylings like /italics/ and *bold* to modify the style accordingly. However, I can't seem to combine them.

For example:

black black black "green green green" black black.
black black black *bold-black* black
black black black "green green green *bold-black* green" black.

Is there a way for vim to preserve the color of the containing element but modify the style (or vice versa)?

Thanks.

Offline

Board footer

Powered by FluxBB