Ralf Angeli <[email protected]> writes:

>> -            (while (re-search-forward 
>> "^[^%\n\r]*\\\\\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^\\]]*\\]\\)?{\\([^}]+\\)}"
>>  nil t)
>> +            (while (re-search-forward 
>> "\\(?:^\\|\\=\\)[^%\n\r]*?\\\\\\(bibentry\\|[a-zA-Z]*cite[a-zA-Z]*\\)\\(\\[[^\\]]*\\]\\)?{\\([^}]+\\)}"
>>  nil t)
>
> Just as a random thought: Using \= here is a smart way to prevent the
> regexp from matching in %-based comments.  Should we ever want to use
> RefTeX for modes with other comment starters, we might have to think
> about doing things like this with `reftex-in-comment'.

AFAIR, RefTeX does not even work in .dtx files.  Quite a shortcoming:
all navigation is unavailable.

Would likely require quite a bit of revision.

-- 
David Kastrup


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

Reply via email to