diff options
| author | Jonas Dujava <jonas.dujava@gmail.com> | 2024-06-23 15:41:48 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-06-23 16:40:32 +0200 |
| commit | c233773abf17cd6bbf7720718faa140f04c7838e (patch) | |
| tree | ef07327a447f622e0b018621523dcac204f2a03c /queries | |
| parent | feat(latex): highlight hyperlinks (diff) | |
| download | nvim-treesitter-c233773abf17cd6bbf7720718faa140f04c7838e.tar nvim-treesitter-c233773abf17cd6bbf7720718faa140f04c7838e.tar.gz nvim-treesitter-c233773abf17cd6bbf7720718faa140f04c7838e.tar.bz2 nvim-treesitter-c233773abf17cd6bbf7720718faa140f04c7838e.tar.lz nvim-treesitter-c233773abf17cd6bbf7720718faa140f04c7838e.tar.xz nvim-treesitter-c233773abf17cd6bbf7720718faa140f04c7838e.tar.zst nvim-treesitter-c233773abf17cd6bbf7720718faa140f04c7838e.zip | |
feat(latex): improve hyperlinks
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/latex/highlights.scm | 12 |
1 files changed, 4 insertions, 8 deletions
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 |
