<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Ah, I see.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>That could be cool though...</DIV><DIV>Or maybe only look for these "verbose" comments inside """multiline""" patterns, since they're most useful there.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>And one can also escape the comment character. This already solves the issue (and keeps the results of the regular expression intact!):<SPAN class="Apple-tab-span" style="white-space: pre; "></SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN>some_reg_string = r'/#'</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>thx</DIV><DIV>d</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV><DIV>On 21-mrt-2007, at 21:39, Alexander Ross wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hey Dirk,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>–Alex</DIV><DIV><BR><DIV><DIV>On Mar 21, 2007, at 1:08 PM, Dirk van Oosterbosch, IR labs wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hi All,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>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'.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>like:</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>some_reg_string = r'#'</DIV><DIV>shows up as illegal / incomplete syntax.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>And e.g. all my code following this line:</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN>parentPattern = re.compile(r'^#extends (\w+)\s*$')</DIV><DIV>becomes:</DIV><DIV>source.python</DIV><DIV>meta.function-call.python</DIV><DIV>meta.function-call.arguments.python</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; ">which is a little confusing.</SPAN></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR></DIV></DIV></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE></DIV><DIV> </DIV><BR></BODY></HTML>