* Mosè Giordano (2014-01-13) writes:

> 2014/1/12 Ralf Angeli <[email protected]>:
>> * Mosč Giordano (2014-01-11) writes:
>>
>>> 2014/1/11 Ralf Angeli <[email protected]>:
>>>>
>>>> "\\([^\\$]\\|[^\\]\\(\\\\\\\\\\)*\\\\\\$\\|[^\\]\\(\\\\\\\\\\)+\\|\\`\\)\\(\\$\\$\\|\\$\\)"
>>>
>>> Thanks for your suggestions!  Unfortunately, this regexp doesn't match
>>> the opening dollar in
>>>     \\$something$
>>
>> Hm, in my case it does.  Though, point has to be at least one character
>> before the first backslash for it to work.
>
> I applied the attached patch to test your regexp, but the reported bug
> is still there.  Am I missing something?

Oh, sorry, I did not actually test the regexp with the example.  As I've
written before, for the regexp to work it needs one character in front
of the backslashes.  With it the start of a "backslash series" is
determined.  The example in the bug report is "$a$\\$b$".  That means
after finding the second dollar sign, point is right in front of the
newline and the regexp is therefore not able to recognize it.  I don't
know a possibility to get around this problem.  IIRC this type of
problem was one of the reasons for switching from a regexp to
`TeX-escaped-p' for similar cases.  So perhaps that would really be the
better option.

-- 
Ralf

_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to