diff options
| author | Alvaro Muñoz Sanchez <alvaro@pwntester.com> | 2021-12-29 10:38:13 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-06 20:38:54 +0100 |
| commit | 142c017ecb7db8b9c6b735a83657141c5bf628eb (patch) | |
| tree | d2fb260c19881863da61d778fa5e44187b050402 /queries/markdown | |
| parent | Be more accurate about code block language (diff) | |
| download | nvim-treesitter-142c017ecb7db8b9c6b735a83657141c5bf628eb.tar nvim-treesitter-142c017ecb7db8b9c6b735a83657141c5bf628eb.tar.gz nvim-treesitter-142c017ecb7db8b9c6b735a83657141c5bf628eb.tar.bz2 nvim-treesitter-142c017ecb7db8b9c6b735a83657141c5bf628eb.tar.lz nvim-treesitter-142c017ecb7db8b9c6b735a83657141c5bf628eb.tar.xz nvim-treesitter-142c017ecb7db8b9c6b735a83657141c5bf628eb.tar.zst nvim-treesitter-142c017ecb7db8b9c6b735a83657141c5bf628eb.zip | |
improve markdown highlighting
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 39ac59757..791eb62d4 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 2c1df01c8..c8dfb5665 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)) |
