aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/diff.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lexlua/diff.lua')
-rw-r--r--lexlua/diff.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlua/diff.lua b/lexlua/diff.lua
index c5c6b8738..676865f08 100644
--- a/lexlua/diff.lua
+++ b/lexlua/diff.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('diff', {lex_by_line = true})
@@ -16,7 +16,7 @@ lex:add_rule('header', token('header', (P('*** ') + '--- ' + '+++ ') *
lex:add_style('header', lexer.styles.comment)
-- Location.
-lex:add_rule('location', token(lexer.NUMBER, ('@@' + lexer.digit^1 + '****') *
+lex:add_rule('location', token(lexer.NUMBER, ('@@' + lexer.dec_num + '****') *
lexer.any^1))
-- Additions, deletions, and changes.