emacs-devel
[Top][All Lists]
Advanced

[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: Thu, 11 Jun 2020 00:42:25 +0100

On Wed, 10 Jun 2020 at 15:15, Robert Pluim <rpluim@gmail.com> wrote:
>
> >>>>> On Wed, 10 Jun 2020 14:58:18 +0100, Michał Nazarewicz 
> >>>>> <mina86@mina86.com> said:
>
>     Michał> On Wed, 10 Jun 2020 at 12:40, Robert Pluim <rpluim@gmail.com> 
> wrote:
>     Michał> I suppose you’re right. It should be [ \t\v\f] instead to catch
>     Michał> all non-new-line white-space characters. Or [ \t\v\f\r\n] to catch
>     Michał> all white-space characters.
>     >>
>     >> [[:blank:]] ?
>
>     Michał> [[:blank:]] is defined in terms of Unicode properties so that 
> would
>     Michał> catch things which C does not consider white-space.
>
> [[:space:]] then, which uses the buffer's syntax table.

The regex under discussion needs to adhere to C syntax but is (may be)
used outside of cc-mode and thus should not rely on syntax table being
set up for C.

-- 
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]