diff --git a/lockfile.json b/lockfile.json index 186eba574..d21eec282 100644 --- a/lockfile.json +++ b/lockfile.json @@ -381,7 +381,7 @@ "revision": "854a40e99f7c70258e522bdb8ab584ede6196e2e" }, "latex": { - "revision": "5a1b4165add2dd705e0a460e5ac12d5baa35a354" + "revision": "1218adae6179fd49ec9945b00bd3211866acc119" }, "ledger": { "revision": "8a841fb20ce683bfbb3469e6ba67f2851cfdf94a" diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm index 94206162a..3831069ff 100644 --- a/queries/latex/highlights.scm +++ b/queries/latex/highlights.scm @@ -39,8 +39,6 @@ "}" ] @punctuation.bracket ; "(" ")" has no syntactical meaning in LaTeX -(hyperlink) @string.special.url @nospell - ; General environments (begin command: _ @module @@ -254,12 +252,10 @@ (_) @markup.strong)) (#any-of? @_name "\\textbf" "\\mathbf")) -((generic_command - command: (command_name) @_name - . - arg: (curly_group - (_) @markup.link.url)) - (#any-of? @_name "\\url" "\\href")) +(hyperlink + command: _ @function @nospell + uri: (curly_group_uri + (_) @markup.link.url @nospell)) ; File inclusion commands (class_include