on master help sign in
Improve markdown highlights and add latex injection (#6100)
commit0cbb61c3a45f605f685897027ec0dc606ec8bef5 authorMatthias Deiml <matthias@deiml.net> dateSat 25 Feb 2023, 19:40 (4 years ago) parent309735a
3 files changed+11−3
languages.toml+2−2 runtime/queries/markdown.inline/injections.scm+2 runtime/queries/markdown/highlights.scm+7−1
languages.toml+2−2
@@ -1026,7 +1026,7 @@ indent = { tab-width = 2, unit = " " }
10261026
10271027[[grammar]]
10281028name = "markdown"
1029−source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "a7de4be29783a6e25f3240c90afea52f2417faa3", subpath = "tree-sitter-markdown" }
1029+source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "7e7aa9a25ca9729db9fe22912f8f47bdb403a979", subpath = "tree-sitter-markdown" }
10301030
10311031[[language]]
10321032name = "markdown.inline"
@@ -1038,7 +1038,7 @@ grammar = "markdown_inline"
10381038
10391039[[grammar]]
10401040name = "markdown_inline"
1041−source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "a7de4be29783a6e25f3240c90afea52f2417faa3", subpath = "tree-sitter-markdown-inline" }
1041+source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "7e7aa9a25ca9729db9fe22912f8f47bdb403a979", subpath = "tree-sitter-markdown-inline" }
10421042
10431043[[language]]
10441044name = "dart"
runtime/queries/markdown.inline/injections.scm+2
@@ -1,2 +1,4 @@
11
22((html_tag) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children))
3+
4+((latex_block) @injection.content (#set! injection.language "latex") (#set! injection.include-unnamed-children))
runtime/queries/markdown/highlights.scm+7−1
@@ -39,7 +39,7 @@
3939 (list_marker_parenthesis)
4040] @markup.list.numbered
4141
42−(thematic_break) @punctuation.delimiter
42+(thematic_break) @punctuation.special
4343
4444[
4545 (block_continuation)
@@ -51,3 +51,9 @@
5151] @string.escape
5252
5353(block_quote) @markup.quote
54+
55+(pipe_table_row
56+ "|" @punctuation.special)
57+(pipe_table_header
58+ "|" @punctuation.special)
59+(pipe_table_delimiter_row) @punctuation.special