aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/markdown.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lexlua/markdown.lua')
-rw-r--r--lexlua/markdown.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlua/markdown.lua b/lexlua/markdown.lua
index e49826e5a..9eb38a9d9 100644
--- a/lexlua/markdown.lua
+++ b/lexlua/markdown.lua
@@ -3,7 +3,7 @@
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
-local P, R, S = lpeg.P, lpeg.R, lpeg.S
+local P, S = lpeg.P, lpeg.S
local lex = lexer.new('markdown')
@@ -27,7 +27,7 @@ lex:add_rule('blockquote', token(lexer.STRING,
end)))
lex:add_rule('list', token('list',
- lexer.starts_line(S(' \t')^0 * (S('*+-') + R('09')^1 * '.')) * S(' \t')))
+ lexer.starts_line(S(' \t')^0 * (S('*+-') + lexer.digit^1 * '.')) * S(' \t')))
lex:add_style('list', lexer.styles.constant)
local hspace = S('\t\v\f\r ')