Home Download Buy Blog Forum Support

Help with some Regular Expressions for Syntax Highlighting.

Help with some Regular Expressions for Syntax Highlighting.

Postby frodzet on Fri Jun 21, 2013 4:58 pm

Greetings,

So i'm working on a syntax highlighting for some lua.

How can i specify something like so:

([A-Za-z0-9_]+) - This being one color.
([A-Za-z0-9_]+) - This being another color. But if i put Quotation marks around this it will change to another color.

so the final match would look somethink like this:

([A-Za-z0-9_]+)\\(([A-Za-z0-9_]+)\\)

now that would be simple enough just by adding captures, but if i want the second capture to change color as soon as i put Quotation marks around it, hows that possible?
frodzet
 
Posts: 6
Joined: Mon May 27, 2013 12:09 pm

Re: Help with some Regular Expressions for Syntax Highlighting.

Postby frodzet on Sat Jun 22, 2013 12:25 am

Got it all figured out myself :)
frodzet
 
Posts: 6
Joined: Mon May 27, 2013 12:09 pm


Return to Plugin Development

Who is online

Users browsing this forum: Google [Bot] and 4 guests