Add highlighting for rst and markdown with TreeSitter

This commit is contained in:
Daniel Siepmann 2024-02-12 14:24:35 +01:00
parent dcb81c5bd3
commit 244b4bf6c6
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 31 additions and 0 deletions

View file

@ -1,5 +1,12 @@
# Changelog # Changelog
## v1.6.0 2024-02-12
### Added
- Add highlighting for rst with TreeSitter.
- Add highlighting for markdown with TreeSitter.
## v1.5.0 2023-10-30 ## v1.5.0 2023-10-30
### Added ### Added

View file

@ -91,6 +91,7 @@ hi @property cterm=none ctermbg=none ctermfg=blue
hi @method cterm=none ctermbg=none ctermfg=white hi @method cterm=none ctermbg=none ctermfg=white
hi @method.call cterm=none ctermbg=none ctermfg=white hi @method.call cterm=none ctermbg=none ctermfg=white
hi link @function.call @method.call hi link @function.call @method.call
hi link @function.builtin @function.call
hi @attribute cterm=none ctermbg=none ctermfg=blue hi @attribute cterm=none ctermbg=none ctermfg=blue
hi link @text @string hi link @text @string
hi link @punctuation @operator hi link @punctuation @operator
@ -112,6 +113,29 @@ hi link @text.title.5.html @string
hi link @text.title.6.html @string hi link @text.title.6.html @string
hi @operator.html cterm=none ctermbg=none ctermfg=blue hi @operator.html cterm=none ctermbg=none ctermfg=blue
" reStructuredText Treesitter
hi @markup.list.rst cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.rst cterm=none ctermbg=none ctermfg=blue
" markdown Treesitter
hi @markup.list.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.1.marker.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.2.marker.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.3.marker.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.4.marker.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.5.marker.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.6.marker.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.1.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.2.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.3.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.4.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.5.markdown cterm=none ctermbg=none ctermfg=blue
hi @markup.heading.6.markdown cterm=none ctermbg=none ctermfg=blue
" SQL Treesitter
hi link @keyword.operator.sql @type.builtin
hi link @keyword.sql @type.builtin
" PHPDoc Treesitter (Keep everything as comment) " PHPDoc Treesitter (Keep everything as comment)
hi link @type.phpdoc @comment hi link @type.phpdoc @comment
hi link @attribute.phpdoc @comment hi link @attribute.phpdoc @comment