diff options
Diffstat (limited to 'runtime/queries/markdown.inline')
-rw-r--r-- | runtime/queries/markdown.inline/highlights.scm | 39 | ||||
-rw-r--r-- | runtime/queries/markdown.inline/injections.scm | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/runtime/queries/markdown.inline/highlights.scm b/runtime/queries/markdown.inline/highlights.scm new file mode 100644 index 00000000..ee0926a5 --- /dev/null +++ b/runtime/queries/markdown.inline/highlights.scm @@ -0,0 +1,39 @@ +;; From nvim-treesitter/nvim-treesitter +[ + (code_span) + (link_title) +] @markup.raw.inline + +[ + (emphasis_delimiter) + (code_span_delimiter) +] @punctuation.bracket + +(emphasis) @markup.italic + +(strong_emphasis) @markup.bold + +(strikethrough) @markup.strikethrough + +[ + (link_destination) + (uri_autolink) +] @markup.link.url + +[ + (link_text) + (image_description) +] @markup.link.text + +(link_label) @markup.link.label + +[ + (backslash_escape) + (hard_line_break) +] @constant.character.escape + +(image ["[" "]" "(" ")"] @punctuation.bracket) +(image "!" @punctuation.special) +(inline_link ["[" "]" "(" ")"] @punctuation.bracket) +(shortcut_link ["[" "]"] @punctuation.bracket) + diff --git a/runtime/queries/markdown.inline/injections.scm b/runtime/queries/markdown.inline/injections.scm new file mode 100644 index 00000000..c137a822 --- /dev/null +++ b/runtime/queries/markdown.inline/injections.scm @@ -0,0 +1,2 @@ + +((html_tag) @injection.content (#set! injection.language "html")) |