diff options
Diffstat (limited to 'lexlua/asm.lua')
-rw-r--r-- | lexlua/asm.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlua/asm.lua b/lexlua/asm.lua index f2e80a3d0..7aca5a392 100644 --- a/lexlua/asm.lua +++ b/lexlua/asm.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('asm') @@ -345,7 +345,7 @@ local pp_word = word_match[[ ixdefine line local macro pathsearch pop push rep repl rmacro rotate stacksize strcat strlen substr undef unmacro use warning while xdefine ]] -local pp_symbol = '??' + S('!$+?') + '%' * -lexer.space + R('09')^1 +local pp_symbol = '??' + S('!$+?') + '%' * -lexer.space + lexer.digit^1 lex:add_rule('preproc', token(lexer.PREPROCESSOR, '%' * (pp_word + pp_symbol))) -- Operators. |