diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-10-01 21:38:38 +0200 |
|---|---|---|
| committer | Kiyan Yazdani <yazdani.kiyan@protonmail.com> | 2020-10-19 18:28:45 +0200 |
| commit | f7d92f663c07b9be35ceea0342c215ca396c48fb (patch) | |
| tree | 4abaff961affb3c35443dd72423eb33fec2d502f /queries/markdown | |
| parent | readme: add nvim-treesitter-context (diff) | |
| download | nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar.gz nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar.bz2 nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar.lz nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar.xz nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.tar.zst nvim-treesitter-f7d92f663c07b9be35ceea0342c215ca396c48fb.zip | |
feat(languagetree): implement language tree
Allow the LanguageTree to be used as an option for highlighting.
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
Co-authored-by: Yazdani Kiyan <yazdani.kiyan@protonmail.com>
Diffstat (limited to 'queries/markdown')
| -rw-r--r-- | queries/markdown/highlights.scm | 19 | ||||
| -rw-r--r-- | queries/markdown/injections.scm | 6 |
2 files changed, 25 insertions, 0 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm new file mode 100644 index 000000000..101526bf5 --- /dev/null +++ b/queries/markdown/highlights.scm @@ -0,0 +1,19 @@ +(atx_heading) @text.title + +[ + (code_span) + (fenced_code_block) +]@text.literal + +(code_fence_content) @none + +[ + (link_text) + (image_description) +] @text.strong + +[ + (emphasis) + (strong_emphasis) +] @text.emphasis +(link_destination) @text.uri diff --git a/queries/markdown/injections.scm b/queries/markdown/injections.scm new file mode 100644 index 000000000..0522dee2c --- /dev/null +++ b/queries/markdown/injections.scm @@ -0,0 +1,6 @@ +(fenced_code_block + (info_string) @lang + (code_fence_content) @injection) + +((html_block) @injection + (#set! "lang" "html")) |
