[TxMt] Python syntax breaks on # in regex string (r'#')
Alexander Ross
alex.j.ross at gmail.com
Wed Mar 21 20:39:46 UTC 2007
Hey Dirk,
I was attempting to match the comment style of "verbose" regular
expressions... Unfortunately, there isn't a good way to tell whether
or not those should be enabled, so I'm just going to remove it
altogether.
–Alex
On Mar 21, 2007, at 1:08 PM, Dirk van Oosterbosch, IR labs wrote:
> 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
> -----------------------------
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070321/fe010342/attachment.html>
More information about the textmate
mailing list