From 4e47268c6dbbc72d53c651f393a612c3e4a3f84e Mon Sep 17 00:00:00 2001 From: Jonas Dujava Date: Sun, 1 Sep 2024 17:15:59 +0200 Subject: feat(latex): set url attribute for hyperlinks Signed-off-by: Jonas Dujava --- queries/latex/highlights.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm index 9b36634e6..5a18e0203 100644 --- a/queries/latex/highlights.scm +++ b/queries/latex/highlights.scm @@ -112,10 +112,11 @@ command: _ @function.macro @nospell keys: (curly_group_text_list) @markup.link @nospell) -(hyperlink +((hyperlink command: _ @function @nospell uri: (curly_group_uri - (_) @markup.link.url @nospell)) + (_) @markup.link.url @nospell)) @_hyperlink + (#set! @_hyperlink url @markup.link.url)) (glossary_entry_definition command: _ @function.macro @nospell -- cgit v1.2.3-70-g09d2