From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29043 invoked from network); 9 Jan 2024 15:45:03 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 9 Jan 2024 15:45:03 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3BA15483F86 for ; Tue, 9 Jan 2024 16:41:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x8a-p5BaVoH8 for ; Tue, 9 Jan 2024 16:41:11 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C3749480876 for ; Tue, 9 Jan 2024 16:40:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E5694480147 for ; Tue, 9 Jan 2024 16:39:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zz7-ZZlnq7Vl for ; Tue, 9 Jan 2024 16:39:20 +0100 (CET) Received: from flump.de (flump.de [185.163.118.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 835FC4800EC for ; Tue, 9 Jan 2024 16:39:20 +0100 (CET) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id 3ABA051DC63 for ; Tue, 9 Jan 2024 16:39:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1704814760; bh=2EQsg/ki+cRTnqy+2IlzmL7ZQAHt0IxkdOkEZ3yNDb0=; h=From:To:Subject:Date:In-Reply-To:References; b=8jgU935NOVkpi2KmpoEKbGWQDocn4+W6uxtCF3+HTM4RdIklyFIRism69hakvXXBe tQYnTcRgRlCTBuPVZJZCfFxt7ffQ+7IG71ThN4tn+UjTaAJBeuSf1JCuP7z5Ki3uwq HXjZ7refMEqEU8+U2v3D6lTFezvtm8JqeIBt2sSA= From: Gerion Entrup To: ntg-context@ntg.nl Date: Tue, 09 Jan 2024 16:39:19 +0100 Message-ID: <3306654.44csPzL39Z@falbala> In-Reply-To: References: <96f998e92ddb10f1f56a37a5ad776338@thiriet.web4me.fr> MIME-Version: 1.0 Message-ID-Hash: FMEXWF7O62YVJC3NCRE2ZW62HDKPPC4K X-Message-ID-Hash: FMEXWF7O62YVJC3NCRE2ZW62HDKPPC4K X-MailFrom: gerion.entrup@flump.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: vim syntax highlighting bug? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============6756692764818003960==" --===============6756692764818003960== Content-Type: multipart/signed; boundary="nextPart8350626.T7Z3S40VBb"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart8350626.T7Z3S40VBb Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Gerion Entrup To: ntg-context@ntg.nl Subject: Re: [NTG-context] Re: vim syntax highlighting bug? Date: Tue, 09 Jan 2024 16:39:19 +0100 Message-ID: <3306654.44csPzL39Z@falbala> In-Reply-To: MIME-Version: 1.0 Thanks for your effort! I have the same problem in Neovim and linked the pull request there: https://github.com/neovim/neovim/issues/26966 Best, Gerion Am Montag, 8. Januar 2024, 12:16:14 CET schrieb Vincent Hennebert: > I was in touch with the maintainer of the context.vim syntax file about=20 > this. It turns out to be an issue with the lua.vim file that is included= =20 > in the context one. Lua.vim highlights trailing parentheses as errors,=20 > but that=E2=80=99s done in a way that doesn=E2=80=99t work well when the = file is=20 > included by other syntax files. It somehow steals the syntax context and= =20 > makes Vim stay in Lua mode when it should go back to ConTeXt mode (I=E2= =80=99m=20 > not too savvy of the details). >=20 > The maintainer came up with a workaround [1] to force returning to=20 > ConTeXt mode, although the parenthesis remains highlighted as an error. >=20 > That highlight bothers me, so my own workaround is to copy the lua.vim=20 > file in my own .vim/syntax folder and comment out the =E2=80=98syn match= =20 > luaParenError ")"=E2=80=99 line (l.61 in my Vim version). >=20 > Maybe playing with the =E2=80=98contained=E2=80=99 keyword (in lua.vim) c= ould lead to a=20 > proper solution, but I=E2=80=99m happy enough with my workaround that I h= aven=E2=80=99t=20 > felt the need to investigate this issue any further. >=20 > Hope that helps, > Vincent >=20 > [1] https://github.com/vim/vim/pull/13778 >=20 > On 06/01/2024 12:28, Damien Thiriet via ntg-context wrote: > > Hello, > >=20 > >=20 > > Happy New Year! > >=20 > > I got into a bug in my Vim syntax highlighting version. > > Highlight stays in lua mode after ctxlua macro is closed. > > Here is a MWE, where =C2=ABthis should not be highlitghted as > > a comment indeed is. > >=20 > > \starttext > >=20 > > Hello! > > \ctxlua{context("does the parser work?")} > >=20 > > -- this should not be highlighted as a comment > >=20 > > \stoptext > >=20 > > Do other Vim users come into this? > > Is my syntax file outdated? > >=20 > > I am using this Vim version on OpenBSD 7.3 -stable: > > VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 6 2023 08:55:14) > > Included patches: 1-1876 > >=20 > > Best regards, > >=20 > > Damien Thiriet --nextPart8350626.T7Z3S40VBb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEM/tVN9WpYYHnPZHxloeAdSYJHeoFAmWdaKcACgkQloeAdSYJ HeqBggv/S4M8B/6lGebIeYtXhAcwWL6R+fxxAnqRoRGqBilDiVpodwyklqhf/8pO z7THULmfRilPprlCdCbVFlpgrdiXSENb38/t8yYQCILn3d4X92XmZpDgngsyPWdn Ru/gIVvdjkU6TyCPPswxiUI9p81FafORBnjQYkVxHoaajKN5bpsn9lS145Rm7iIx cUcj9/ZIdjdbWP/FxpHM/bYK38q56UOogp0WOQLd8PW1xsvqHpm13osJvBwXxxZV GCiK9Mj7h4Df7lDYmokYdjFcmwKVAPc1vhbz3jQ2n+jLSW8zNW3pHMky+0p5k5sC kjb9zKUO1dgwZABrX2GeS1KT0pa0JoeXlq0M+ckO6gZdkQYmkWqITTyX0PknwtJH bOeoPU0fxvNhf7lWh6mZU2knKhKNAg5HxS9ezNvCxjSgJsVKXMcZgXt/vN/Bmh6n Z6YpBdEVii/y2O/imZgj5SSnv0uZp8dJfEj3Bmzkq4ccLawjjNmotqrDxa/SsMEM 7vvmCGDA =pLMv -----END PGP SIGNATURE----- --nextPart8350626.T7Z3S40VBb-- --===============6756692764818003960== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============6756692764818003960==--