mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
feat(latex): improve hyperlinks
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
This commit is contained in:
parent
55d5772a6c
commit
c233773abf
2 changed files with 5 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue