From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Micha=C5=82_Nazarewicz?= Newsgroups: gmane.emacs.devel Subject: Re: Regexp for c-or-c++-mode Date: Wed, 10 Jun 2020 14:58:18 +0100 Message-ID: References: <20200607164100.GB6212@ACM> <20200609201255.GB7104@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="107981"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 10 15:59:19 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jj1GB-000S08-0r for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Jun 2020 15:59:19 +0200 Original-Received: from localhost ([::1]:55904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jj1GA-0004Ql-3A for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Jun 2020 09:59:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jj1FX-0003wr-LV for emacs-devel@gnu.org; Wed, 10 Jun 2020 09:58:39 -0400 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:54667) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jj1FW-0006df-6J for emacs-devel@gnu.org; Wed, 10 Jun 2020 09:58:39 -0400 Original-Received: by mail-wm1-f50.google.com with SMTP id g10so1923050wmh.4 for ; Wed, 10 Jun 2020 06:58:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=OzewHZsMVwnLtYsV/wictzHhz7OuBZSm6/ZdrSmMn1c=; b=rMDynQRAmLNzTpzsyBwcbMYUP4T8L+0g5I6eiGZ0jeSQjOg3iA/R1OxZQdzFz/mJLr AdfafLIsbKK8u4+m9iz3rwCfDAzIZwb4v4S6Y7Kw5AO5geEkCEZ8c22aKfCH0dOT9ZhH m+cCUN5BBlXYEJvRKWouApSYn9gaqDbTyWeFHpzp8e60fJmAt7bJNztA+i6KNFkZ30HQ hdwYCbxgJD7pVT76gnSrMJyxBrgacB2UUomabDLF4s1AUxT5rAXVcOQ2U/hMxh00WAYn m4ovL9xclP6now/IlLFVAd96KJQ5hE7HMD4xE7QDUMZsKtHuOuU0++zPX3CyE+bzmt7O 6p5Q== X-Gm-Message-State: AOAM530641gjoDXhQsx7h7PRGz2TZe7WbwpXFYri84yl1iM32y1wOOox QnSV5UBYsY3tcDnzhujbpsxAlcI86zrJ266MTEo= X-Google-Smtp-Source: ABdhPJxpPpGeID9zDvNoLeCjwyXtYknjrBRvTBk919rsJuFHjFVyAPmkZYPJaZryb84EfZb2wyrM+gCDB64jKKF0hFU= X-Received: by 2002:a05:600c:4401:: with SMTP id u1mr3330001wmn.36.1591797510256; Wed, 10 Jun 2020 06:58:30 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=209.85.128.50; envelope-from=mnazarewicz@gmail.com; helo=mail-wm1-f50.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/10 09:58:31 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252073 Archived-At: On Wed, 10 Jun 2020 at 12:40, Robert Pluim wrote: > Micha=C5=82> I suppose you=E2=80=99re right. It should be [ \t\v\f] i= nstead to catch > Micha=C5=82> all non-new-line white-space characters. Or [ \t\v\f\r\n= ] to catch > Micha=C5=82> all white-space characters. > > [[:blank:]] ? [[:blank:]] is defined in terms of Unicode properties so that would catch things which C does not consider white-space. --=20 Best regards =E3=83=9F=E3=83=8F=E3=82=A6 =E2=80=9C=F0=9D=93=B6=F0=9D=93=B2=F0=9D=93=B7= =F0=9D=93=AA86=E2=80=9D =E3=83=8A=E3=82=B6=E3=83=AC=E3=83=B4=E3=82=A4=E3=83= =84 =C2=ABIf at first you don=E2=80=99t succeed, give up skydiving=C2=BB