@@ -150,3 +150,7 @@
150 path = helix-syntax/languages/tree-sitter-llvm
150 path = helix-syntax/languages/tree-sitter-llvm
151 url = https://github.com/benwilliamgraham/tree-sitter-llvm
151 url = https://github.com/benwilliamgraham/tree-sitter-llvm
152 shallow = true
152 shallow = true
153+[submodule "helix-syntax/languages/tree-sitter-markdown"]
154+ path = helix-syntax/languages/tree-sitter-markdown
155+ url = https://github.com/MDeiml/tree-sitter-markdown
helix-syntax/languages/tree-sitter-markdownnew file+1
Submodule changed.
@@ -421,3 +421,12 @@ roots = []
421file-types = ["ll"]
421file-types = ["ll"]
422comment-token = ";"
422comment-token = ";"
423indent = { tab-width = 2, unit = " " }
423indent = { tab-width = 2, unit = " " }
428+injection-regex = "md|markdown"
432+indent = { tab-width = 2, unit = " " }
runtime/queries/markdown/highlights.scmnew file+35
@@ -0,0 +1,35 @@
6+(code_fence_content) @none
13+(code_span) @markup.raw.inline
15+(emphasis) @markup.italic
17+(strong_emphasis) @markup.bold
19+(link_destination) @markup.underline.link
21+; (link_label) @markup.label ; TODO: rename
28+ (list_marker_parenthesis)
29+] @punctuation.special
34+] @string.character.escape
runtime/queries/markdown/injections.scmnew file
No changes to the content.
runtime/queries/svelte/highlights.scm+1−1
@@ -25,7 +25,7 @@
26((attribute
26((attribute
27 (attribute_name) @_attr
27 (attribute_name) @_attr
28− (quoted_attribute_value (attribute_value) @markup.undeline.link))
28+ (quoted_attribute_value (attribute_value) @markup.underline.link))
29 (#match? @_attr "^(href|src)$"))
29 (#match? @_attr "^(href|src)$"))
31(tag_name) @tag
31(tag_name) @tag
@@ -28,6 +28,12 @@ string = "silver"
28# used for lifetimes
28# used for lifetimes
29label = "honey"
29label = "honey"
31+"markup.heading" = "lilac"
32+"markup.bold" = { modifiers = ["bold"] }
33+"markup.italic" = { modifiers = ["italic"] }
34+"markup.underline.link" = { fg = "silver", modifiers = ["underlined"] }
35+"markup.raw" = "almond"
31# TODO: diferentiate doc comment
37# TODO: diferentiate doc comment
32# concat (ERROR) @error.syntax and "MISSING ;" selectors for errors
38# concat (ERROR) @error.syntax and "MISSING ;" selectors for errors