Hi Keita, Ikumi Keita <[email protected]> writes:
>>>>>> Ikumi Keita <[email protected]> writes: >> I think the attached patch fixes the problem. Could you test whether it >> works on your side? > > Hmm, the patch also fails to identify the following form of code > comment: > \\% This is a code comment. > That is, a line beginning with 0 or more whitespaces, followed by even > number of back slashes, followed by percent sign(s) and comment body. Thank you for looking into this. The way I understand this regexp: "\\([^ \r\n%\\]\\|\\\\%\\)\\([ \t]\\|\\\\\\\\\\)*" ^^^^^^^ is there to exclude the control symbol \%, i.e., being parsed as comment start. Would it help if we generlize the control symbol idea by saying: "\\([^ \r\n%\\]\\|\\\\[^a-zA-Z0-9\\]\\)\\([ \t]\\|\\\\\\\\\\)*" ^^^^^^^^^^^^^^ > Maybe we should give up regexp-based approach to find out code comments > accurately. Are you thinking about `syntax-ppss'? Best, Arash _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
