[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Invalid regular expression" in visual-basic-mode.el
From: |
Kevin Rodgers |
Subject: |
Re: "Invalid regular expression" in visual-basic-mode.el |
Date: |
Fri, 17 Sep 2004 17:45:10 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Mathias Dahl wrote:
> Mathias Dahl <brakjoller@hotmail.com> writes:
>>I am testing Emacs CVS on Windows XP (fetched from the
>>nqemacs-project) and get errors in visual-basic-mode that I
>>did not get in 21.3. I have turned on debug-on-error and the
>>problem is with the following code:
>>
>> (looking-at "^.*\\_[ ]*$")
>>
>>If you evaluate the above you will get the error mentioned
>>in the subject line.
>>
>>Is this a bug in Emacs or in visual-basic-mode.el? I know a
>>bit of regexp myself and the example above seems valid to me.
>
> I solved my problem temporarily by changing the expression
> to this:
>
> (defconst visual-basic-continuation-regexp "^.*_[ \t]*$")
>
> That extra backslash did not seem to make sense.
>
> But still, is it really invalid?
\_ (backslash-underscore ) is not a defined regexp construct. In the
past it was treated as a 2-character sequence; apparently now that
should be represented as "\\\\_".
--
Kevin Rodgers