From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filippo Argiolas Newsgroups: gmane.emacs.devel Subject: Re: A few questions about c++-ts-mode. Date: Mon, 13 May 2024 10:10:17 +0200 Message-ID: References: <865xvoa0jr.fsf@gnu.org> <86jzk38tm7.fsf@gnu.org> <86cypv8rb6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4222"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spacibba@aol.com, emacs-devel@gnu.org, casouri@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 13 10:11:24 2024 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 1s6QmJ-000109-F2 for ged-emacs-devel@m.gmane-mx.org; Mon, 13 May 2024 10:11:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6Qlc-0007W2-CX; Mon, 13 May 2024 04:10:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6QlY-0007VY-6l for emacs-devel@gnu.org; Mon, 13 May 2024 04:10:36 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6QlW-0006Fi-Jq; Mon, 13 May 2024 04:10:35 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-51f1e8eaee5so4591885e87.1; Mon, 13 May 2024 01:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715587831; x=1716192631; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PT04CBJnrIbEA2jSW9axoWGlpx4FOWxPqa3iB1KIZOc=; b=b4ao7LY1fjYqQ6jZdQQ9qwrMVj+5UABgzk3qwir9lUT/+E/F9dgJ97TStjDsVVUvdR jQpSb7DQTbrZV2bbQmTj9nxkcOhG5fcktNSZEcJfUA+b+LzxKu/+7iOdcv3MH5UbtPqe HOziY8P09zlnzqrcHQwu94RRBaz7r2Z2fM6zzrwAb6YG/eAy1upGQxHfPxWkl4vkLxag Y495pQLb9bgqD3ALEw2rA1zCzack+QWuV6x1u2PviLk7qLzDsY9zMM5YxRyp7XoNJuyB ogoJQEphZtG5eHukP7mJNbrp7DPgDo01PVbxs5keguhoIqw9/uUjfKegkK0d4aEW0I8e 8FIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715587831; x=1716192631; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PT04CBJnrIbEA2jSW9axoWGlpx4FOWxPqa3iB1KIZOc=; b=kX0yjMldQ17H4P9uld+6Fpqx+mDTTQ4PmWeVw+tEFXigvrKoJb55DERWWYjF10ki+7 vLLgD6nJR1f6T9pWb0XER2UbmcdRa+JHoXLGW3yT0/vJFaVtFbcV9LPJ4kN4omJbZWiv p3EeGWwsZTDcegnLJFSTepcl57nWn7jESPE/01gh91btr0kZMu24xtlUTp2d5gFwt7r2 t9Y34/miFztpp63lOw1wMJnUXCZNGigiC7HoMTIntBK8fO1kkS7XQnu8BOKMoeIVFkr8 4tC9QgxeQgsPYCi2WtpG8V4+J6NY5hzikm98/uXZ5zICAvIxJYUVlp4lZsABpswVw2Uy E7nw== X-Forwarded-Encrypted: i=1; AJvYcCX3lsBSicfxtBGBl1L/z99Bkmors/AfHZh4mfJtuLz6HUwUoxA71DObLvT4Hy/mQNl59tz97slPiyfrbUVHWDQADXRy X-Gm-Message-State: AOJu0YwQeZIRSINF1+wbAtCv4aIT5AfRszAdUO/OA705uk5zNJmDVh3g iIpdcv5KlPgT5lLp0wc+NzU62BnVC/w6ohmGOIld95P3BL5imxFRWPiHeyDt8WX/r42iWOT5jaS 4dWn7PVzbSEMoFXUUdSYmAC6YubfcFTOH X-Google-Smtp-Source: AGHT+IF7PQboHz4DIbhyRVXrG9N3kbmloj7EVVC5lECdWrBXxOvqaer0Wc5ZDUzKAPlUoKUQVpXxreEjMkzWovBl+OQ= X-Received: by 2002:ac2:483b:0:b0:520:ed4e:2206 with SMTP id 2adb3069b0e04-521e0c63f33mr3839231e87.17.1715587830699; Mon, 13 May 2024 01:10:30 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=filippo.argiolas@gmail.com; helo=mail-lf1-x136.google.com 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319198 Archived-At: On Mon, May 13, 2024 at 8:23=E2=80=AFAM Filippo Argiolas wrote: > '(((comment) @capture (:match "/\\*[\\*!]" @capture))))) Just noticed this is a bit buggy, something like this should be more robust= : `(((comment) @capture (:match ,(rx bos (or "/**" "/*!")) @capture)))))