Re: Is there any way to do this in GtkSourceView?
"Steve Frécinaux" <[email protected]> Fri, 30 May 2008 20:05:15 +0200
| Newsgroups | gmane.comp.gnome.devtools |
|---|---|
| Message-ID | <[email protected]> |
On Wed, May 28, 2008 at 10:42 AM, Raja Mukherji <[email protected]> wrote: > Hi, > I'm trying to create a .lang file for text that looks like html interspersed > with escape sequences "\<code>;", where <code> is written in a scripting > language called Wrapl. The interpreter parses <code> so it can contain > additional semicolons, but only within matching brackets. However the syntax > highlighting switches back to html after the first semicolon. I realize this > might be tricky to solve, but it could be possible to only switch back to > html mode at the first semicolon after a matching bracket. Is there any way > to do this? Try adding a context for parenthesis: it seems that you expect the ';' inside the parenthesis not to be considered as the end of your code, so you should tell gtksourceview that parens extend the block context.