From 64c3d6070cf02ece04780b6f149df2aa50279453 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Tue, 12 Sep 2017 16:18:23 +0200 Subject: [PATCH] Keep s+ instead of s* --- lib/mm2ep_depend/lexer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mm2ep_depend/lexer.rb b/lib/mm2ep_depend/lexer.rb index 1763983..d2c60dd 100755 --- a/lib/mm2ep_depend/lexer.rb +++ b/lib/mm2ep_depend/lexer.rb @@ -3,6 +3,7 @@ module Mm2ep class Lexer < Rly::Lex token :L_PAR, /\(/ + token :R_PAR, /\)/ token :NUMBER, /[0-9]+(\.[0-9]+)?/ token :STRING, /"[^"]*"/ token :EQ_OP, /\=/ @@ -12,8 +13,7 @@ module Mm2ep token :AND_OP, /AND/ token :OR_OP, /OR/ token :NOT_OP, /NOT/ - token :SPACE, /\s*/ - token :R_PAR, /\)/ + token :SPACE, /\s+/ on_error do |t| puts "Illegal character #{t.value}"