mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
feat(typst): set url attribute for links
This commit is contained in:
parent
e75c007f27
commit
ec03481377
1 changed files with 11 additions and 1 deletions
|
|
@ -106,7 +106,17 @@
|
|||
|
||||
(emph) @markup.italic
|
||||
|
||||
(url) @markup.link.url
|
||||
((url) @markup.link.url
|
||||
(#set! @markup.link.url url @markup.link.url))
|
||||
|
||||
(call
|
||||
item: (ident) @_link
|
||||
(#eq? @_link "link")
|
||||
(group
|
||||
.
|
||||
(string) @markup.link.url
|
||||
(#offset! @markup.link.url 0 1 0 -1)
|
||||
(#set! @markup.link.url url @markup.link.url)))
|
||||
|
||||
; code blocks
|
||||
(raw_span) @markup.raw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue