hello I'm new to TextMate, Hat down to the creators/developers I'm coming from bbedit..hem..hemm no comment..
I'm trying to build a bundle for the rebol language and regex is new to me.
Please, help on this "^"" ^" is escape "
all between " and " is a string
this is my code { name = 'rebol.string'; begin = '"'; end = '"'; }, which obviously dosn't work for this case.
also any link to great oniguruma tutorial would be great
Thank you and have a great day! Will Arp
On 26/1/2006, at 18:26, Will Arp wrote:
this is my code { name = 'rebol.string'; begin = '"'; end = '"'; }, which obviously dosn't work for this case.
Make a sub-rule to handle escape sequences:
{ name = 'string.quoted.double.rebol'; begin = '"'; end = '"'; patterns = ( { name = 'constant.character.escaped.rebol'; match = '^.'; } ); },
The sub-rule matches ^ followed by «some character», so if you write ^" inside the string, it's swallowed by the sub-rule, and thus won't end the string.