From unknown Tue Jun 17 01:43:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48078: Verbatim environments with key-value arguments Resent-From: Dario Gjorgjevski Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Wed, 28 Apr 2021 09:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48078 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 48078@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161960108012728 (code B ref -1); Wed, 28 Apr 2021 09:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Apr 2021 09:11:20 +0000 Received: from localhost ([127.0.0.1]:51710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbgE4-0003JE-G4 for submit@debbugs.gnu.org; Wed, 28 Apr 2021 05:11:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:39290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbgE1-0003J5-Rw for submit@debbugs.gnu.org; Wed, 28 Apr 2021 05:11:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbgE0-0003FK-Uv for bug-auctex@gnu.org; Wed, 28 Apr 2021 05:11:17 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:33348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbgDw-0006mF-14 for bug-auctex@gnu.org; Wed, 28 Apr 2021 05:11:16 -0400 Received: by mail-ed1-x534.google.com with SMTP id g10so5345589edb.0 for ; Wed, 28 Apr 2021 02:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=xJ9lMFXzwCfqtiiL0E1EZD+8QYbQ5GncGgWIcgkptdM=; b=R+B05RTFTj4QMRtc8WAfyFZ5Ih02QGrO4cYGtJype/kTO+7hzG7BXbvl/RPyH6N/Ij DONqlDBycu1hPfCbJTKLHmgL9/cOAVHnI4ie6GMKL+QC7N/0Rlg//PQs2fmBM6qgwDPb phxgYJYjbjcMB1WeTNKWqdP+qTNYALZg+XxWojkvNay4AM5mhotLf8OMLRxMUPUsSXYE 6DhlmefFygv+e57T4HUBTK0Df0S0UYxKZNgkGCrJV4zxonb8R3vCNZlEwUafJct8fwJz hnntBi41PFQRg1JZ/MIph6hZ0oNZO4XicfFhenvCTFb+Ng45zGUUjva97P5dWvraUfXi Br8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=xJ9lMFXzwCfqtiiL0E1EZD+8QYbQ5GncGgWIcgkptdM=; b=jQchJ+FlhfwsH3HCtYJsOciOT1KJOpTUziU4VfHrOkCp2Akhrvb3Rhl6Wk2xm5tok/ EfZ2wuxxj1sh4xdBMINszCC9RRaSD1jOlJGntrMbiOj//8ZekRghhIIiSouZ3uV0JO3C tz6BsxQ+M0FHgcUiNqvpw4I8+D4s7s6HhCNOeZi0yk2kyFi2eYk4LD9wXRHVMn8yEFfr md7nQhGLBUqZu/s8z58vX58HEtvxCbmwDH5OZz0pA5YmWzQtuFCfMIXPlvYS0suhiR0B hI2h7ejtvkScibe47XNAybPZPV+ekoOdKikaFpknygjjqXT6Zj9UpHiwqtz7GciUnDjO KBmw== X-Gm-Message-State: AOAM533dMsX3MHxw2tEqFLmZH0ELtoUPDp4g7h+wYvMB+/IA8PsqQsB7 8qnqG2E4eWWV0mrb9kD+9zM/B1rj8k688A== X-Google-Smtp-Source: ABdhPJxiB/49FQy96LwlWfhH59mT8MYw41cMKI1yJPH3DM6VGO6i+W6uuN+1FnzUwCrubMakYzlwgA== X-Received: by 2002:a50:f113:: with SMTP id w19mr9526285edl.46.1619601069037; Wed, 28 Apr 2021 02:11:09 -0700 (PDT) Received: from ZALANDO-31298 (p200300e97702cef930e8472eb4351e58.dip0.t-ipconnect.de. [2003:e9:7702:cef9:30e8:472e:b435:1e58]) by smtp.gmail.com with ESMTPSA id a22sm4452062edu.14.2021.04.28.02.11.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Apr 2021 02:11:08 -0700 (PDT) From: Dario Gjorgjevski Date: Wed, 28 Apr 2021 11:11:07 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=dario.gjorgjevski@gmail.com; helo=mail-ed1-x534.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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Hi, I am writing styles for the minted and listings libraries of tcolorbox, which introduce the tcblisting verbatim environment. Here is a small example showing things: --=-=-= Content-Type: text/x-tex Content-Disposition: inline; filename=tcblisting.tex Content-Description: Example using the tcblisting verbatim environment \documentclass[preview,svgnames,x11names]{standalone} \RequirePackage[newfloat]{minted} \RequirePackage{tcolorbox} \tcbuselibrary{most,minted} \begin{document} \begin{tcblisting}{% listing only,% title={Example shell session}, minted language=shell-session,% minted options={},% } $ echo 'Hello, World!' Hello, World! \end{tcblisting} \end{document} % Local Variables: % mode: latex % TeX-command-extra-options: "-shell-escape" % TeX-master: t % End: --=-=-= Content-Type: text/plain As you can see, tcblisting takes key-value arguments. This breaks the "mandatory arguments to verbatim environments" part of `font-latex-syntactic-keywords', which is defined as: ;; After the optional argument, there may also be ;; another mandatory argument(s) (e.g. with VerbatimOut or ;; the minted envs or defined with `lstnewenvironment'). "\\(?:{[^}]*}\\)*" Since the key-value arguments _can_ contain braces (e.g., title={Example shell session}), the regex does not match properly and messes up the fontification. Feel free to add "tcblisting" to `LaTeX-verbtaim-environments' and check out the example above: You will see that everything after title={Example shell session} is fontified as verbatim. I would be happy to try and improve the regex so that it handles key-value arguments, but I first wanted to ask if this is indeed and the best approach. Best regards, -- Dario Gjorgjevski Key fingerprint = F7C3 734D 2381 DAEB 4C6D 9CF7 744A 4F0B 4F1C 9371 $ gpg --keyserver hkps://hkps.pool.sks-keyservers.net \ --search-keys 744A4F0B4F1C9371 --=-=-=-- From unknown Tue Jun 17 01:43:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48078: Verbatim environments with key-value arguments Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Wed, 28 Apr 2021 19:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48078 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Dario Gjorgjevski Cc: 48078@debbugs.gnu.org, 48078-done@debbugs.gnu.org X-Debbugs-Original-Cc: bug-auctex@gnu.org, 48078-done@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161963901627198 (code B ref -1); Wed, 28 Apr 2021 19:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Apr 2021 19:43:36 +0000 Received: from localhost ([127.0.0.1]:54132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbq5v-00074a-PT for submit@debbugs.gnu.org; Wed, 28 Apr 2021 15:43:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:43710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbq5r-00074P-6n for submit@debbugs.gnu.org; Wed, 28 Apr 2021 15:43:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbq5q-0006fR-RI for bug-auctex@gnu.org; Wed, 28 Apr 2021 15:43:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50569) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbq5q-0000nX-HP; Wed, 28 Apr 2021 15:43:30 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:56369) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1lbq5q-0003dC-7n; Wed, 28 Apr 2021 15:43:30 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id C059F27C005A; Wed, 28 Apr 2021 15:43:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 28 Apr 2021 15:43:29 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddvvddguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe evveeikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucfk phepkeejrdduieefrdefuddrudehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgr lhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Apr 2021 15:43:28 -0400 (EDT) References: User-agent: mu4e 1.5.12; emacs 28.0.50 From: Tassilo Horn Date: Wed, 28 Apr 2021 20:41:16 +0200 In-reply-to: Message-ID: <87r1iu42lf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dario Gjorgjevski writes: Hi Dario, > \begin{tcblisting}{% > listing only,% > title={Example shell session}, > minted language=shell-session,% > minted options={},% > } > $ echo 'Hello, World!' > Hello, World! > \end{tcblisting} > > Feel free to add "tcblisting" to `LaTeX-verbtaim-environments' and > check out the example above: You will see that everything after > title={Example shell session} is fontified as verbatim. > > I would be happy to try and improve the regex so that it handles > key-value arguments, To handle all situations correctly is impossible. You can't properly match nested constructs like balanced parens/braces using regular expressions. For that, you'd need an actual parser. But you can at least allow a fixed number of balanced braces, and I've just done that in order to allow one level of nested {...} in mandatory arguments. (We already allowed for one level of nested brackets in an optional argument.) I'll make a new ELPA release. Thanks for the report and Bye, Tassilo From unknown Tue Jun 17 01:43:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dario Gjorgjevski Subject: bug#48078: closed (Re: bug#48078: Verbatim environments with key-value arguments) Message-ID: References: <87r1iu42lf.fsf@gnu.org> X-Gnu-PR-Message: they-closed 48078 X-Gnu-PR-Package: auctex Reply-To: 48078@debbugs.gnu.org Date: Wed, 28 Apr 2021 19:44:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1619639043-27256-1" This is a multi-part message in MIME format... ------------=_1619639043-27256-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #48078: Verbatim environments with key-value arguments which was filed against the auctex package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 48078@debbugs.gnu.org. --=20 48078: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D48078 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1619639043-27256-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 48078-done) by debbugs.gnu.org; 28 Apr 2021 19:43:40 +0000 Received: from localhost ([127.0.0.1]:54135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbq60-00074q-1F for submit@debbugs.gnu.org; Wed, 28 Apr 2021 15:43:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbq5v-00074O-Py for 48078-done@debbugs.gnu.org; Wed, 28 Apr 2021 15:43:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50569) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbq5q-0000nX-HP; Wed, 28 Apr 2021 15:43:30 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:56369) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1lbq5q-0003dC-7n; Wed, 28 Apr 2021 15:43:30 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id C059F27C005A; Wed, 28 Apr 2021 15:43:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 28 Apr 2021 15:43:29 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddvvddguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe evveeikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucfk phepkeejrdduieefrdefuddrudehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgr lhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Apr 2021 15:43:28 -0400 (EDT) References: User-agent: mu4e 1.5.12; emacs 28.0.50 From: Tassilo Horn To: Dario Gjorgjevski Subject: Re: bug#48078: Verbatim environments with key-value arguments Date: Wed, 28 Apr 2021 20:41:16 +0200 In-reply-to: Message-ID: <87r1iu42lf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48078-done Cc: bug-auctex@gnu.org, 48078-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dario Gjorgjevski writes: Hi Dario, > \begin{tcblisting}{% > listing only,% > title={Example shell session}, > minted language=shell-session,% > minted options={},% > } > $ echo 'Hello, World!' > Hello, World! > \end{tcblisting} > > Feel free to add "tcblisting" to `LaTeX-verbtaim-environments' and > check out the example above: You will see that everything after > title={Example shell session} is fontified as verbatim. > > I would be happy to try and improve the regex so that it handles > key-value arguments, To handle all situations correctly is impossible. You can't properly match nested constructs like balanced parens/braces using regular expressions. For that, you'd need an actual parser. But you can at least allow a fixed number of balanced braces, and I've just done that in order to allow one level of nested {...} in mandatory arguments. (We already allowed for one level of nested brackets in an optional argument.) I'll make a new ELPA release. Thanks for the report and Bye, Tassilo ------------=_1619639043-27256-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Apr 2021 09:11:20 +0000 Received: from localhost ([127.0.0.1]:51710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbgE4-0003JE-G4 for submit@debbugs.gnu.org; Wed, 28 Apr 2021 05:11:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:39290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbgE1-0003J5-Rw for submit@debbugs.gnu.org; Wed, 28 Apr 2021 05:11:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbgE0-0003FK-Uv for bug-auctex@gnu.org; Wed, 28 Apr 2021 05:11:17 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:33348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbgDw-0006mF-14 for bug-auctex@gnu.org; Wed, 28 Apr 2021 05:11:16 -0400 Received: by mail-ed1-x534.google.com with SMTP id g10so5345589edb.0 for ; Wed, 28 Apr 2021 02:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=xJ9lMFXzwCfqtiiL0E1EZD+8QYbQ5GncGgWIcgkptdM=; b=R+B05RTFTj4QMRtc8WAfyFZ5Ih02QGrO4cYGtJype/kTO+7hzG7BXbvl/RPyH6N/Ij DONqlDBycu1hPfCbJTKLHmgL9/cOAVHnI4ie6GMKL+QC7N/0Rlg//PQs2fmBM6qgwDPb phxgYJYjbjcMB1WeTNKWqdP+qTNYALZg+XxWojkvNay4AM5mhotLf8OMLRxMUPUsSXYE 6DhlmefFygv+e57T4HUBTK0Df0S0UYxKZNgkGCrJV4zxonb8R3vCNZlEwUafJct8fwJz hnntBi41PFQRg1JZ/MIph6hZ0oNZO4XicfFhenvCTFb+Ng45zGUUjva97P5dWvraUfXi Br8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=xJ9lMFXzwCfqtiiL0E1EZD+8QYbQ5GncGgWIcgkptdM=; b=jQchJ+FlhfwsH3HCtYJsOciOT1KJOpTUziU4VfHrOkCp2Akhrvb3Rhl6Wk2xm5tok/ EfZ2wuxxj1sh4xdBMINszCC9RRaSD1jOlJGntrMbiOj//8ZekRghhIIiSouZ3uV0JO3C tz6BsxQ+M0FHgcUiNqvpw4I8+D4s7s6HhCNOeZi0yk2kyFi2eYk4LD9wXRHVMn8yEFfr md7nQhGLBUqZu/s8z58vX58HEtvxCbmwDH5OZz0pA5YmWzQtuFCfMIXPlvYS0suhiR0B hI2h7ejtvkScibe47XNAybPZPV+ekoOdKikaFpknygjjqXT6Zj9UpHiwqtz7GciUnDjO KBmw== X-Gm-Message-State: AOAM533dMsX3MHxw2tEqFLmZH0ELtoUPDp4g7h+wYvMB+/IA8PsqQsB7 8qnqG2E4eWWV0mrb9kD+9zM/B1rj8k688A== X-Google-Smtp-Source: ABdhPJxiB/49FQy96LwlWfhH59mT8MYw41cMKI1yJPH3DM6VGO6i+W6uuN+1FnzUwCrubMakYzlwgA== X-Received: by 2002:a50:f113:: with SMTP id w19mr9526285edl.46.1619601069037; Wed, 28 Apr 2021 02:11:09 -0700 (PDT) Received: from ZALANDO-31298 (p200300e97702cef930e8472eb4351e58.dip0.t-ipconnect.de. [2003:e9:7702:cef9:30e8:472e:b435:1e58]) by smtp.gmail.com with ESMTPSA id a22sm4452062edu.14.2021.04.28.02.11.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Apr 2021 02:11:08 -0700 (PDT) From: Dario Gjorgjevski To: bug-auctex@gnu.org Subject: Verbatim environments with key-value arguments Date: Wed, 28 Apr 2021 11:11:07 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=dario.gjorgjevski@gmail.com; helo=mail-ed1-x534.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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Hi, I am writing styles for the minted and listings libraries of tcolorbox, which introduce the tcblisting verbatim environment. Here is a small example showing things: --=-=-= Content-Type: text/x-tex Content-Disposition: inline; filename=tcblisting.tex Content-Description: Example using the tcblisting verbatim environment \documentclass[preview,svgnames,x11names]{standalone} \RequirePackage[newfloat]{minted} \RequirePackage{tcolorbox} \tcbuselibrary{most,minted} \begin{document} \begin{tcblisting}{% listing only,% title={Example shell session}, minted language=shell-session,% minted options={},% } $ echo 'Hello, World!' Hello, World! \end{tcblisting} \end{document} % Local Variables: % mode: latex % TeX-command-extra-options: "-shell-escape" % TeX-master: t % End: --=-=-= Content-Type: text/plain As you can see, tcblisting takes key-value arguments. This breaks the "mandatory arguments to verbatim environments" part of `font-latex-syntactic-keywords', which is defined as: ;; After the optional argument, there may also be ;; another mandatory argument(s) (e.g. with VerbatimOut or ;; the minted envs or defined with `lstnewenvironment'). "\\(?:{[^}]*}\\)*" Since the key-value arguments _can_ contain braces (e.g., title={Example shell session}), the regex does not match properly and messes up the fontification. Feel free to add "tcblisting" to `LaTeX-verbtaim-environments' and check out the example above: You will see that everything after title={Example shell session} is fontified as verbatim. I would be happy to try and improve the regex so that it handles key-value arguments, but I first wanted to ask if this is indeed and the best approach. Best regards, -- Dario Gjorgjevski Key fingerprint = F7C3 734D 2381 DAEB 4C6D 9CF7 744A 4F0B 4F1C 9371 $ gpg --keyserver hkps://hkps.pool.sks-keyservers.net \ --search-keys 744A4F0B4F1C9371 --=-=-=-- ------------=_1619639043-27256-1-- From unknown Tue Jun 17 01:43:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48078: Verbatim environments with key-value arguments Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 29 Apr 2021 17:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48078 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: Dario Gjorgjevski , 48078@debbugs.gnu.org Received: via spool by 48078-submit@debbugs.gnu.org id=B48078.161971763129912 (code B ref 48078); Thu, 29 Apr 2021 17:34:03 +0000 Received: (at 48078) by debbugs.gnu.org; 29 Apr 2021 17:33:51 +0000 Received: from localhost ([127.0.0.1]:56755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcAXu-0007mF-EV for submit@debbugs.gnu.org; Thu, 29 Apr 2021 13:33:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcAXr-0007kQ-88 for 48078@debbugs.gnu.org; Thu, 29 Apr 2021 13:33:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46764) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcAXm-0002tN-13; Thu, 29 Apr 2021 13:33:42 -0400 Received: from p5b326de1.dip0.t-ipconnect.de ([91.50.109.225]:50925 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1lcAXR-0006as-Ek; Thu, 29 Apr 2021 13:33:26 -0400 From: Arash Esbati References: <87r1iu42lf.fsf@gnu.org> Date: Thu, 29 Apr 2021 19:32:56 +0200 In-Reply-To: <87r1iu42lf.fsf@gnu.org> (Tassilo Horn's message of "Wed, 28 Apr 2021 20:41:16 +0200") Message-ID: <86im45xagn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Tassilo, Tassilo Horn writes: > But you can at least allow a fixed number of balanced braces, and I've > just done that in order to allow one level of nested {...} in mandatory > arguments. (We already allowed for one level of nested brackets in an > optional argument.) Thank you for the quick fix. I also removed some unnecessary escaping of characters in the regexp for the optional arguments. While we're at, I think we should replace "\\(?:\\[[^][]*\\(?:\\[[^][]*\\][^][]*\\)*\\]\\)?" with "\\(?:\\[[^][]*\\(?:{[^}{]*}[^}{]*\\)*\\]\\)?" at some point. Rationale: One can have a single ] in an optional argument which is hidden inside {}. In this case, our current implementation will fail. I can live with the situation for the time being, we can fix it when we get a complaint :-) Best, Arash From unknown Tue Jun 17 01:43:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48078: Verbatim environments with key-value arguments Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 29 Apr 2021 19:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48078 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Arash Esbati Cc: Dario Gjorgjevski , 48078@debbugs.gnu.org Received: via spool by 48078-submit@debbugs.gnu.org id=B48078.161972452530298 (code B ref 48078); Thu, 29 Apr 2021 19:29:02 +0000 Received: (at 48078) by debbugs.gnu.org; 29 Apr 2021 19:28:45 +0000 Received: from localhost ([127.0.0.1]:56832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcCL7-0007sc-4H for submit@debbugs.gnu.org; Thu, 29 Apr 2021 15:28:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcCL3-0007sO-DW for 48078@debbugs.gnu.org; Thu, 29 Apr 2021 15:28:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48989) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcCKy-0008IQ-6C; Thu, 29 Apr 2021 15:28:36 -0400 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:39667) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1lcCKv-0007Wp-EJ; Thu, 29 Apr 2021 15:28:34 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 4824227C005A; Thu, 29 Apr 2021 15:28:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 29 Apr 2021 15:28:32 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddvgedgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe evveeikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucfk phepkeejrdduieefrdefuddrudehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgr lhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Apr 2021 15:28:29 -0400 (EDT) References: <87r1iu42lf.fsf@gnu.org> <86im45xagn.fsf@gnu.org> User-agent: mu4e 1.5.12; emacs 28.0.50 From: Tassilo Horn Date: Thu, 29 Apr 2021 21:05:16 +0200 In-reply-to: <86im45xagn.fsf@gnu.org> Message-ID: <87r1isoppi.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Arash Esbati writes: Hi Arash, > Thank you for the quick fix. I also removed some unnecessary escaping > of characters in the regexp for the optional arguments. I had to check the docs to understand that. :-) > While we're at, I think we should replace > > "\\(?:\\[[^][]*\\(?:\\[[^][]*\\][^][]*\\)*\\]\\)?" > > with > > "\\(?:\\[[^][]*\\(?:{[^}{]*}[^}{]*\\)*\\]\\)?" > > at some point. But your advertised new regex doesn't even match the normal nested bracket case, e.g., [foo=[1,2], bar={~}]. > Rationale: One can have a single ] in an optional argument which is > hidden inside {}. Not everything that can be written should be written. ;-) Bye, Tassilo From unknown Tue Jun 17 01:43:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48078: Verbatim environments with key-value arguments Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 29 Apr 2021 21:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48078 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: Dario Gjorgjevski , 48078@debbugs.gnu.org Received: via spool by 48078-submit@debbugs.gnu.org id=B48078.16197324179705 (code B ref 48078); Thu, 29 Apr 2021 21:41:02 +0000 Received: (at 48078) by debbugs.gnu.org; 29 Apr 2021 21:40:17 +0000 Received: from localhost ([127.0.0.1]:56974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcEOP-0002WR-4h for submit@debbugs.gnu.org; Thu, 29 Apr 2021 17:40:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcEOO-0002WE-2L for 48078@debbugs.gnu.org; Thu, 29 Apr 2021 17:40:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50944) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcEOI-00012G-NS; Thu, 29 Apr 2021 17:40:10 -0400 Received: from p5b326de1.dip0.t-ipconnect.de ([91.50.109.225]:55025 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1lcEOF-0001bx-Vy; Thu, 29 Apr 2021 17:40:10 -0400 From: Arash Esbati References: <87r1iu42lf.fsf@gnu.org> <86im45xagn.fsf@gnu.org> <87r1isoppi.fsf@gnu.org> Date: Thu, 29 Apr 2021 23:39:49 +0200 In-Reply-To: <87r1isoppi.fsf@gnu.org> (Tassilo Horn's message of "Thu, 29 Apr 2021 21:05:16 +0200") Message-ID: <86y2d0kbx6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Tassilo, Tassilo Horn writes: > Arash Esbati writes: > >> Thank you for the quick fix. I also removed some unnecessary escaping >> of characters in the regexp for the optional arguments. > > I had to check the docs to understand that. :-) I have to check the docs every time I deal with regexp's :-) >> While we're at, I think we should replace >> >> "\\(?:\\[[^][]*\\(?:\\[[^][]*\\][^][]*\\)*\\]\\)?" >> >> with >> >> "\\(?:\\[[^][]*\\(?:{[^}{]*}[^}{]*\\)*\\]\\)?" >> >> at some point. > > But your advertised new regex doesn't even match the normal nested > bracket case, e.g., [foo=[1,2], bar={~}]. It has to match [foo={[1,2]}, bar={~}]. In your example above, LaTeX scanner stops matching for the optional argument after ] and everything after that would be part of the environment. >> Rationale: One can have a single ] in an optional argument which is >> hidden inside {}. > > Not everything that can be written should be written. ;-) A slight delay might be acceptable, sometimes :-) Best, Arash From unknown Tue Jun 17 01:43:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48078: Verbatim environments with key-value arguments Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 01 May 2021 06:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48078 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Arash Esbati Cc: Dario Gjorgjevski , 48078@debbugs.gnu.org Received: via spool by 48078-submit@debbugs.gnu.org id=B48078.16198514866949 (code B ref 48078); Sat, 01 May 2021 06:45:01 +0000 Received: (at 48078) by debbugs.gnu.org; 1 May 2021 06:44:46 +0000 Received: from localhost ([127.0.0.1]:60182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcjMs-0001o1-EM for submit@debbugs.gnu.org; Sat, 01 May 2021 02:44:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcjMr-0001nk-As for 48078@debbugs.gnu.org; Sat, 01 May 2021 02:44:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40205) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcjMm-0006Uz-3H; Sat, 01 May 2021 02:44:40 -0400 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:55517) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1lcjMl-0002i1-1n; Sat, 01 May 2021 02:44:39 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id A918E27C0054; Sat, 1 May 2021 02:44:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 01 May 2021 02:44:38 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddvjedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe evveeikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucfk phepkeejrdduieefrdefuddrudehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgr lhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 1 May 2021 02:44:37 -0400 (EDT) References: <87r1iu42lf.fsf@gnu.org> <86im45xagn.fsf@gnu.org> <87r1isoppi.fsf@gnu.org> <86y2d0kbx6.fsf@gnu.org> User-agent: mu4e 1.5.12; emacs 28.0.50 From: Tassilo Horn Date: Sat, 01 May 2021 08:42:47 +0200 In-reply-to: <86y2d0kbx6.fsf@gnu.org> Message-ID: <87o8dvuf58.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Arash Esbati writes: Hi Arash, >>> While we're at, I think we should replace >>> >>> "\\(?:\\[[^][]*\\(?:\\[[^][]*\\][^][]*\\)*\\]\\)?" >>> >>> with >>> >>> "\\(?:\\[[^][]*\\(?:{[^}{]*}[^}{]*\\)*\\]\\)?" >>> >>> at some point. >> >> But your advertised new regex doesn't even match the normal nested >> bracket case, e.g., [foo=[1,2], bar={~}]. > > It has to match [foo={[1,2]}, bar={~}]. In your example above, LaTeX > scanner stops matching for the optional argument after ] and > everything after that would be part of the environment. Ah, so my example is not even valid LaTeX syntax? If that's the case, feel free to commit your improvement, preferably with a fontification test Bye, Tassilo From unknown Tue Jun 17 01:43:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48078: Verbatim environments with key-value arguments Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 01 May 2021 21:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48078 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Tassilo Horn Cc: Dario Gjorgjevski , 48078@debbugs.gnu.org Received: via spool by 48078-submit@debbugs.gnu.org id=B48078.161990577322813 (code B ref 48078); Sat, 01 May 2021 21:50:02 +0000 Received: (at 48078) by debbugs.gnu.org; 1 May 2021 21:49:33 +0000 Received: from localhost ([127.0.0.1]:38595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcxUT-0005vt-6I for submit@debbugs.gnu.org; Sat, 01 May 2021 17:49:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcxUR-0005vn-H8 for 48078@debbugs.gnu.org; Sat, 01 May 2021 17:49:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50071) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcxUL-0004wA-P3; Sat, 01 May 2021 17:49:26 -0400 Received: from p5b326de1.dip0.t-ipconnect.de ([91.50.109.225]:55925 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1lcxUK-0005pw-G7; Sat, 01 May 2021 17:49:25 -0400 From: Arash Esbati References: <87r1iu42lf.fsf@gnu.org> <86im45xagn.fsf@gnu.org> <87r1isoppi.fsf@gnu.org> <86y2d0kbx6.fsf@gnu.org> <87o8dvuf58.fsf@gnu.org> Date: Sat, 01 May 2021 23:49:15 +0200 In-Reply-To: <87o8dvuf58.fsf@gnu.org> (Tassilo Horn's message of "Sat, 01 May 2021 08:42:47 +0200") Message-ID: <86r1iq86qs.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Tassilo, Tassilo Horn writes: > Ah, so my example is not even valid LaTeX syntax? If that's the case, > feel free to commit your improvement, preferably with a fontification > test Until now, there were no user complaints and I'm not aware of any use cases where a single ] can be used in an optional argrument of a verbatim environment. I think I can wait until there is a need to touch the regexp, then we can fix it incl. a test. I hope that's Ok for you as well. Best, Arash