Skip to content

Commit

Permalink
lexers: prioritize markdown list rule
Browse files Browse the repository at this point in the history
Reorder the list rule such that it matches before the rule for code
blocks. There are still some problems with multiline list items which
are indented and wrongly matched as code blocks.
  • Loading branch information
martanne committed Apr 28, 2020
1 parent 657ab2e commit d8ab659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lexers/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ local list = token('list',

M._rules = {
{'header', header},
{'list', list},
{'blockquote', blockquote},
{'blockcode', blockcode},
{'hr', hr},
{'list', list},
{'whitespace', ws},
{'link_label', link_label},
{'escape', escape},
Expand Down

0 comments on commit d8ab659

Please sign in to comment.