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: Sun, 7 Jun 2020 19:07:12 +0100 Message-ID: References: <20200607164100.GB6212@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="107514"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 07 20:07:54 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 1jhzi6-000Rsw-Sc for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jun 2020 20:07:54 +0200 Original-Received: from localhost ([::1]:56360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhzi5-0001N3-VH for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jun 2020 14:07:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhzhe-0000xq-Vp for emacs-devel@gnu.org; Sun, 07 Jun 2020 14:07:26 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:47046) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhzhd-0004bq-Cj for emacs-devel@gnu.org; Sun, 07 Jun 2020 14:07:26 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id x6so14910192wrm.13 for ; Sun, 07 Jun 2020 11:07:24 -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=Jr7PP4SgZxinzdHvk2Mx48UkZMYqxgMm0eNo1Ock1Qg=; b=a3xDAg9v+W7LJIbuhkMelWNFtEtZ9Cu1J6dduqeWAUuWJDmOh7BmcOOc7Q7eu3ypD8 45zX2aVmhzaFK79J5FxiMRMArJukhM2DEllUftG1Asbno/vybujQ8LqTpvN7hte/L1Ge e5Fnm7JEMr4DuxC32hjt9bxkexu6VNmYJ3E3gLqyzDGscK8WtM6ytuWmOVEn36S41xwp w+8/jLon5+OrgHmkpNAG4djuGHGXmFkyV5zazSgevD0Y3xfcZdBlG1KX/jpUQG4jDEaK if15nXXcr4ISgyPCHrxtPq1tbEMwqrq8UOhGjnCBRlmsAvPaswBbS8dQW/L2nyPwJIjy 6AhQ== X-Gm-Message-State: AOAM533xB2hURf3eVx3KkIusHx2m6joOnuvzmk3jyYlh6wpZ0JLW+w5b VNiAaQmtmfaSb6UAusLBIQgxmRjUtr9jrm317ic= X-Google-Smtp-Source: ABdhPJx27+JVq/Jq909BeEhSRkQM/hmXMya+Y7fzYOuwdbR9K/jUSMJAr4tt+xnU5NEMIC4Zqu6uAI6yblzzX04BIxE= X-Received: by 2002:a5d:4488:: with SMTP id j8mr19303695wrq.242.1591553243570; Sun, 07 Jun 2020 11:07:23 -0700 (PDT) In-Reply-To: <20200607164100.GB6212@ACM> Received-SPF: pass client-ip=209.85.221.47; envelope-from=mnazarewicz@gmail.com; helo=mail-wr1-f47.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/07 14:07:23 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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:252021 Archived-At: On Sun, 7 Jun 2020 at 17:41, Alan Mackenzie 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. --=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