mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
parent
567c644e53
commit
387a8f38bd
4 changed files with 37 additions and 22 deletions
|
|
@ -25,8 +25,7 @@ local builtin_modules = {
|
|||
enable = false,
|
||||
custom_captures = {},
|
||||
is_supported = function(lang)
|
||||
-- FIXME(vigoux): markdown highlighting breaks everything for now
|
||||
return lang ~= "markdown" and queries.has_highlights(lang)
|
||||
return queries.has_highlights(lang)
|
||||
end,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -433,13 +433,14 @@ list.hcl = {
|
|||
used_by = { "terraform" },
|
||||
}
|
||||
|
||||
-- FIXME(vigoux): markdown is broken for now
|
||||
-- list.markdown = {
|
||||
-- install_info = {
|
||||
-- url = "https://github.com/ikatyang/tree-sitter-markdown",
|
||||
-- files = { "src/parser.c", "src/scanner.cc" },
|
||||
-- }
|
||||
-- }
|
||||
list.markdown = {
|
||||
install_info = {
|
||||
url = "https://github.com/MDeiml/tree-sitter-markdown",
|
||||
files = { "src/parser.c", "src/scanner.cc" },
|
||||
branch = "main",
|
||||
},
|
||||
experimental = true,
|
||||
}
|
||||
|
||||
list.tlaplus = {
|
||||
install_info = {
|
||||
|
|
|
|||
|
|
@ -1,21 +1,35 @@
|
|||
(atx_heading) @text.title
|
||||
|
||||
;; From MDeiml/tree-sitter-markdown
|
||||
[
|
||||
(code_span)
|
||||
(fenced_code_block)
|
||||
]@text.literal
|
||||
(atx_heading)
|
||||
(setext_heading)
|
||||
] @text.title
|
||||
|
||||
(code_fence_content) @none
|
||||
|
||||
[
|
||||
(link_text)
|
||||
(image_description)
|
||||
] @text.strong
|
||||
(indented_code_block)
|
||||
(fenced_code_block)
|
||||
(code_span)
|
||||
] @text.literal
|
||||
|
||||
|
||||
(emphasis) @text.emphasis
|
||||
|
||||
(strong_emphasis) @text.strong
|
||||
|
||||
[
|
||||
(emphasis)
|
||||
(strong_emphasis)
|
||||
] @text.emphasis
|
||||
(link_destination) @text.uri
|
||||
|
||||
(html_comment) @comment
|
||||
(link_label) @text.reference
|
||||
|
||||
[
|
||||
(list_marker_plus)
|
||||
(list_marker_minus)
|
||||
(list_marker_star)
|
||||
(list_marker_dot)
|
||||
(list_marker_parenthesis)
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
(backslash_escape)
|
||||
(hard_line_break)
|
||||
] @string.escape
|
||||
|
|
|
|||
|
|
@ -3,3 +3,4 @@
|
|||
(code_fence_content) @content)
|
||||
|
||||
((html_block) @html)
|
||||
((html_tag) @html)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue