Improve markdown highlights and add latex injection (#6100)

pull/5529/merge
Matthias Deiml 2 years ago committed by GitHub
parent 309735aa2d
commit 0cbb61c3a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1026,7 +1026,7 @@ indent = { tab-width = 2, unit = " " }
[[grammar]] [[grammar]]
name = "markdown" name = "markdown"
source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "a7de4be29783a6e25f3240c90afea52f2417faa3", subpath = "tree-sitter-markdown" } source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "7e7aa9a25ca9729db9fe22912f8f47bdb403a979", subpath = "tree-sitter-markdown" }
[[language]] [[language]]
name = "markdown.inline" name = "markdown.inline"
@ -1038,7 +1038,7 @@ grammar = "markdown_inline"
[[grammar]] [[grammar]]
name = "markdown_inline" name = "markdown_inline"
source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "a7de4be29783a6e25f3240c90afea52f2417faa3", subpath = "tree-sitter-markdown-inline" } source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "7e7aa9a25ca9729db9fe22912f8f47bdb403a979", subpath = "tree-sitter-markdown-inline" }
[[language]] [[language]]
name = "dart" name = "dart"

@ -1,2 +1,4 @@
((html_tag) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children)) ((html_tag) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children))
((latex_block) @injection.content (#set! injection.language "latex") (#set! injection.include-unnamed-children))

@ -39,7 +39,7 @@
(list_marker_parenthesis) (list_marker_parenthesis)
] @markup.list.numbered ] @markup.list.numbered
(thematic_break) @punctuation.delimiter (thematic_break) @punctuation.special
[ [
(block_continuation) (block_continuation)
@ -51,3 +51,9 @@
] @string.escape ] @string.escape
(block_quote) @markup.quote (block_quote) @markup.quote
(pipe_table_row
"|" @punctuation.special)
(pipe_table_header
"|" @punctuation.special)
(pipe_table_delimiter_row) @punctuation.special

Loading…
Cancel
Save