From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Regexp for c-or-c++-mode Date: Wed, 10 Jun 2020 16:15:21 +0200 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="57950"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , emacs-devel@gnu.org To: =?utf-8?Q?Micha=C5=82?= Nazarewicz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 10 16:17:14 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 1jj1XV-000Ex4-Dw for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Jun 2020 16:17:13 +0200 Original-Received: from localhost ([::1]:40734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jj1XU-0004lx-9a for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Jun 2020 10:17:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jj1Vz-0003hV-Py for emacs-devel@gnu.org; Wed, 10 Jun 2020 10:15:39 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:54747) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jj1Vw-0002ki-3r for emacs-devel@gnu.org; Wed, 10 Jun 2020 10:15:37 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id g10so1979631wmh.4 for ; Wed, 10 Jun 2020 07:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=mk4ZAbTZN8R6M2MJTHLmNyYOkB+b9oD6JsgQxJo/1vM=; b=aIcf4NLKriHxYguhDRLfHynCnvfryCSH3ljJw1qunxqVjmb5Hz4/lsMpwFokrfL6V1 9/9AJmEZG6jNfbO7DY1vwC/LiWF/xlpYuI0yEJ1NxEYFuf6uGPp8W58W4jXLPNq6H08j TlyLEmGFSLLUgvDQCJXoajWtMvuQMToTUmWVe74hmn20k8SZGjzT9pyj7eIrSZEiRfoU 2IA5AP8h59c1eczlJuJe2T8yEiLiG3B0k1DnjPbANWqPg36Pbkokc1VQ2iF/n5wS74bH cD9+Wyqqyr3oObmJLkRqKEigFBnqfZnFERISlISWhtUtQxF4GN0YCvG5s0IwLktQ/mKU XxEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=mk4ZAbTZN8R6M2MJTHLmNyYOkB+b9oD6JsgQxJo/1vM=; b=k2dq1xVjq6qpCNR1UPjzQ7YtWaeA5c9zEpV+2HN9eQiPA6zV37szom8xY3omJZ8Uao AcHBgSPPM+f2yELrOyK+w7lNn9nF6LdP0Y4Cfc+es6ukPjrnNHTYB2vPn9QEGbjQbU00 ybGNZZJDGaARrrUa6NLyqE5DkF5X80UUzuMQeCeyDP70swkhRtLBpzv1Y1+fgIA/HrUi zioC/jV8UOmmoy+aM3fRgtFMlYnb9FhJ0E9oCOikom8NpcGA70DtdW16mY4gdq7QQtxj wcJcXUWGwMkni2ycoqrP/CqDCPTw0v5OkVHLZf5dYRg6KT7n8TfSRCyY+WBfNluFwDUt liPw== X-Gm-Message-State: AOAM531D+g40qll0dbK2RiVmniqUMegqfssTHHk7Prj6AqHchrNhoa1b lUgCEsOeq0APecrfUrLqawM62RCl X-Google-Smtp-Source: ABdhPJyCbI8peW0wkME3ca8y0Zj5+pGz0FKLab+WSzhdVDXGUgFvC9Ki+sdzsw3b7GNHw+wvB8zxnw== X-Received: by 2002:a1c:e20a:: with SMTP id z10mr3242859wmg.63.1591798525724; Wed, 10 Jun 2020 07:15:25 -0700 (PDT) Original-Received: from rpluim-mac (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id k14sm8355745wrq.97.2020.06.10.07.15.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 07:15:24 -0700 (PDT) In-Reply-To: (=?utf-8?Q?=22Micha=C5=82?= Nazarewicz"'s message of "Wed, 10 Jun 2020 14:58:18 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=rpluim@gmail.com; helo=mail-wm1-x331.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:252074 Archived-At: >>>>> On Wed, 10 Jun 2020 14:58:18 +0100, Micha=C5=82 Nazarewicz said: Micha=C5=82> 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] ins= tead 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. >>=20 >> [[:blank:]] ? Micha=C5=82> [[:blank:]] is defined in terms of Unicode properties so t= hat would Micha=C5=82> catch things which C does not consider white-space. [[:space:]] then, which uses the buffer's syntax table. Robert