[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regexp for c-or-c++-mode

From: Michał Nazarewicz
Subject: Re: Regexp for c-or-c++-mode
Date: Sun, 7 Jun 2020 19:07:12 +0100

On Sun, 7 Jun 2020 at 17:41, Alan Mackenzie <acm@muc.de> wrote:
> In c-or-c++-mode--regexp, there are several occurrences of
>     [ \t\r]
> .  These expressions notably lack \n.  This seems strange, given how \n
> is the normal line terminator in Emacs and \r is a rarely used artefact.

I wanted the regex to match single-line rather than multi-line statements
to avoid false positives. Though, other than #include lines, either will
probably work equally well.

Best regards
ミハウ “𝓶𝓲𝓷𝓪86” ナザレヴイツ
«If at first you don’t succeed, give up skydiving»

reply via email to

[Prev in Thread] Current Thread [Next in Thread]