mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat(djot): update queries (#6375)
- Adjust some highlights to fit context better - Conceal inline content - Add locals - Add folds
This commit is contained in:
parent
0bfa0be5e4
commit
25ed904c75
4 changed files with 208 additions and 54 deletions
17
queries/djot/locals.scm
Normal file
17
queries/djot/locals.scm
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
(link_reference_definition
|
||||
(link_label) @local.definition)
|
||||
|
||||
(footnote
|
||||
(reference_label) @local.definition)
|
||||
|
||||
(collapsed_reference_link
|
||||
(link_text) @local.reference)
|
||||
|
||||
(full_reference_link
|
||||
(link_label) @local.reference)
|
||||
|
||||
(full_reference_image
|
||||
(link_label) @local.reference)
|
||||
|
||||
(footnote_reference
|
||||
(reference_label) @local.reference)
|
||||
Loading…
Add table
Add a link
Reference in a new issue