[TxMt] Python syntax breaks on # in regex string (r'#')

Dirk van Oosterbosch, IR labs labs at ixopusada.com
Wed Mar 21 20:08:41 UTC 2007


Hi All,

I just got the latest build, Version 1.5.5 (1372), and I noticed that  
the python language syntax is now somewhat broken for comment  
characters (#) inside regular expression strings r'some regular  
expression'.

like:
	some_reg_string = r'#'
shows up as illegal / incomplete syntax.

And e.g. all my code following this line:
	parentPattern = re.compile(r'^#extends (\w+)\s*$')
becomes:
source.python
meta.function-call.python
meta.function-call.arguments.python

which is a little confusing.


best,
dirk


-----------------------------
Dirk van Oosterbosch
de Wittenstraat 225
1052 AT Amsterdam
the Netherlands

http://labs.ixopusada.com
-----------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070321/fa4af0ea/attachment.html>


More information about the textmate mailing list