diff options
Diffstat (limited to 'queries/markdown')
| -rw-r--r-- | queries/markdown/highlights.scm | 18 | ||||
| -rw-r--r-- | queries/markdown/injections.scm | 2 |
2 files changed, 15 insertions, 5 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm index 39ac5975..791eb62d 100644 --- a/queries/markdown/highlights.scm +++ b/queries/markdown/highlights.scm @@ -13,14 +13,14 @@ (setext_h2_underline) ] @punctuation.special -(code_fence_content) @none + +(code_span) @text.literal [ (indented_code_block) - (fenced_code_block) - (code_span) -] @text.literal - + (fenced_code_block) +] @punctuation.delimiter +(code_fence_content) @none (emphasis) @text.emphasis @@ -44,3 +44,11 @@ (backslash_escape) (hard_line_break) ] @string.escape + + +(inline_link "[" @punctuation.delimiter) +(inline_link "]" @punctuation.delimiter) +(inline_link "(" @punctuation.delimiter) +(inline_link ")" @punctuation.delimiter) +(shortcut_link "[" @punctuation.delimiter) +(shortcut_link "]" @punctuation.delimiter) diff --git a/queries/markdown/injections.scm b/queries/markdown/injections.scm index 2c1df01c..c8dfb566 100644 --- a/queries/markdown/injections.scm +++ b/queries/markdown/injections.scm @@ -5,3 +5,5 @@ ((html_block) @html) ((html_tag) @html) + +((thematic_break) (_) @yaml @combined (thematic_break)) |
