mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
feat: markdown table highlights and inline
This commit is contained in:
parent
287ffdccc1
commit
9ada5f70f9
2 changed files with 12 additions and 1 deletions
|
|
@ -19,6 +19,14 @@
|
||||||
(fenced_code_block)
|
(fenced_code_block)
|
||||||
] @text.literal
|
] @text.literal
|
||||||
|
|
||||||
|
(pipe_table_header (pipe_table_cell) @text.title)
|
||||||
|
[
|
||||||
|
(pipe_table_row)
|
||||||
|
(pipe_table_delimiter_row)
|
||||||
|
(pipe_table_header)
|
||||||
|
] "|" @punctuation.special
|
||||||
|
(pipe_table_delimiter_cell) @punctuation.special
|
||||||
|
|
||||||
[
|
[
|
||||||
(fenced_code_block_delimiter)
|
(fenced_code_block_delimiter)
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,7 @@
|
||||||
((minus_metadata) @yaml (#offset! @yaml 1 0 -1 0))
|
((minus_metadata) @yaml (#offset! @yaml 1 0 -1 0))
|
||||||
((plus_metadata) @toml (#offset! @toml 1 0 -1 0))
|
((plus_metadata) @toml (#offset! @toml 1 0 -1 0))
|
||||||
|
|
||||||
((inline) @markdown_inline (#exclude_children! @markdown_inline))
|
([
|
||||||
|
(inline)
|
||||||
|
(pipe_table_cell)
|
||||||
|
] @markdown_inline (#exclude_children! @markdown_inline))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue