summaryrefslogtreecommitdiff
path: root/runtime/queries/markdown.inline/highlights.scm
diff options
context:
space:
mode:
authorMatthias Deiml2022-08-06 15:56:48 +0000
committerGitHub2022-08-06 15:56:48 +0000
commitea04220874a262c2a2d64f8eb9e9cb3124eb0886 (patch)
tree9211e208f82736c2a1ebee6119ec83021479f1ab /runtime/queries/markdown.inline/highlights.scm
parentc00b8f7ad70e69d5365dc4d1247a8d47b53a8d2e (diff)
Use split_parser branch for markdown grammar (#3108)
Diffstat (limited to 'runtime/queries/markdown.inline/highlights.scm')
-rw-r--r--runtime/queries/markdown.inline/highlights.scm39
1 files changed, 39 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)
+