From 625e7e58d0d6134102eb0b7f013589fcbea81211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Dujava?= <19737748+jdujava@users.noreply.github.com> Date: Sun, 21 Jul 2024 10:53:59 +0200 Subject: [PATCH] feat(latex): capture `&` as `@punctuation.delimiter` Signed-off-by: Jonas Dujava --- lockfile.json | 2 +- queries/latex/highlights.scm | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lockfile.json b/lockfile.json index 9da436895..a70e0293e 100644 --- a/lockfile.json +++ b/lockfile.json @@ -387,7 +387,7 @@ "revision": "854a40e99f7c70258e522bdb8ab584ede6196e2e" }, "latex": { - "revision": "107435ada4c4c422ba4f951336b5e566b86ac3ca" + "revision": "d018f2e6620bbaee229cb31fc8b67fabd713d770" }, "ledger": { "revision": "8a841fb20ce683bfbb3469e6ba67f2851cfdf94a" diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm index b0987f56a..f5db212b7 100644 --- a/queries/latex/highlights.scm +++ b/queries/latex/highlights.scm @@ -31,8 +31,7 @@ "\\item" @punctuation.special -((word) @punctuation.delimiter - (#eq? @punctuation.delimiter "&")) +(delimiter) @punctuation.delimiter [ "["