aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lexers')
-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 3120beb..14b0cb1 100644
--- a/lua/lexers/markdown.lua
+++ b/lua/lexers/markdown.lua
@@ -8,7 +8,7 @@ local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'markdown'}
-- Whitespace.
-local ws = token(l.WHITESPACE, l.space^1)
+local ws = token(l.WHITESPACE, S(' \t')^1 + S('\v\r\n')^1)
-- Block elements.
local header = token('h6', l.starts_line('######') * l.nonnewline^0) +