mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-06 20:37:44 +03:00
parent
6da2174e14
commit
49e0678741
7 changed files with 56 additions and 1 deletions
35
runtime/queries/markdown/highlights.scm
Normal file
35
runtime/queries/markdown/highlights.scm
Normal file
|
@ -0,0 +1,35 @@
|
|||
[
|
||||
(atx_heading)
|
||||
(setext_heading)
|
||||
] @markup.heading
|
||||
|
||||
(code_fence_content) @none
|
||||
|
||||
[
|
||||
(indented_code_block)
|
||||
(fenced_code_block)
|
||||
] @markup.raw.block
|
||||
|
||||
(code_span) @markup.raw.inline
|
||||
|
||||
(emphasis) @markup.italic
|
||||
|
||||
(strong_emphasis) @markup.bold
|
||||
|
||||
(link_destination) @markup.underline.link
|
||||
|
||||
; (link_label) @markup.label ; TODO: rename
|
||||
|
||||
[
|
||||
(list_marker_plus)
|
||||
(list_marker_minus)
|
||||
(list_marker_star)
|
||||
(list_marker_dot)
|
||||
(list_marker_parenthesis)
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
(backslash_escape)
|
||||
(hard_line_break)
|
||||
] @string.character.escape
|
||||
|
0
runtime/queries/markdown/injections.scm
Normal file
0
runtime/queries/markdown/injections.scm
Normal file
|
@ -25,7 +25,7 @@
|
|||
|
||||
((attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value (attribute_value) @markup.undeline.link))
|
||||
(quoted_attribute_value (attribute_value) @markup.underline.link))
|
||||
(#match? @_attr "^(href|src)$"))
|
||||
|
||||
(tag_name) @tag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue