vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 3c04a539d5efd14053ff2c30969bc2190abccada
parent 785dd2eb7c0aff1d233653e3a6dcda35b589f837
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 28 Apr 2020 14:33:56 +0200

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.

Diffstat:
Mlua/lexers/markdown.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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},