aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-04-28 14:33:56 +0200
committerMarc André Tanner <mat@brain-dump.org>2020-04-28 14:39:25 +0200
commitd8ab659d7c91a0563108b82521a41eeaadce1249 (patch)
tree28a4ba54d9438c87be99338637a394ad41d9c4ab
parent657ab2e0efbe9446138b23e5185488dc9bd4d455 (diff)
downloadvis-d8ab659d7c91a0563108b82521a41eeaadce1249.tar.gz
vis-d8ab659d7c91a0563108b82521a41eeaadce1249.tar.xz
lexers: prioritize markdown list rule
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.
-rw-r--r--lua/lexers/markdown.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lexers/markdown.lua b/lua/lexers/markdown.lua
index 14b0cb1..fe57a1b 100644
--- a/lua/lexers/markdown.lua
+++ b/lua/lexers/markdown.lua
@@ -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},