From d8ab659d7c91a0563108b82521a41eeaadce1249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 28 Apr 2020 14:33:56 +0200 Subject: 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. --- lua/lexers/markdown.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/lexers') 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}, -- cgit v1.2.3