mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -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
|
|
@ -381,7 +381,7 @@
|
||||||
"revision": "854a40e99f7c70258e522bdb8ab584ede6196e2e"
|
"revision": "854a40e99f7c70258e522bdb8ab584ede6196e2e"
|
||||||
},
|
},
|
||||||
"latex": {
|
"latex": {
|
||||||
"revision": "5a1b4165add2dd705e0a460e5ac12d5baa35a354"
|
"revision": "1218adae6179fd49ec9945b00bd3211866acc119"
|
||||||
},
|
},
|
||||||
"ledger": {
|
"ledger": {
|
||||||
"revision": "8a841fb20ce683bfbb3469e6ba67f2851cfdf94a"
|
"revision": "8a841fb20ce683bfbb3469e6ba67f2851cfdf94a"
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,6 @@
|
||||||
"}"
|
"}"
|
||||||
] @punctuation.bracket ; "(" ")" has no syntactical meaning in LaTeX
|
] @punctuation.bracket ; "(" ")" has no syntactical meaning in LaTeX
|
||||||
|
|
||||||
(hyperlink) @string.special.url @nospell
|
|
||||||
|
|
||||||
; General environments
|
; General environments
|
||||||
(begin
|
(begin
|
||||||
command: _ @module
|
command: _ @module
|
||||||
|
|
@ -254,12 +252,10 @@
|
||||||
(_) @markup.strong))
|
(_) @markup.strong))
|
||||||
(#any-of? @_name "\\textbf" "\\mathbf"))
|
(#any-of? @_name "\\textbf" "\\mathbf"))
|
||||||
|
|
||||||
((generic_command
|
(hyperlink
|
||||||
command: (command_name) @_name
|
command: _ @function @nospell
|
||||||
.
|
uri: (curly_group_uri
|
||||||
arg: (curly_group
|
(_) @markup.link.url @nospell))
|
||||||
(_) @markup.link.url))
|
|
||||||
(#any-of? @_name "\\url" "\\href"))
|
|
||||||
|
|
||||||
; File inclusion commands
|
; File inclusion commands
|
||||||
(class_include
|
(class_include
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue