diff --git a/bpp b/bpp index e92d50d..487639e 100755 --- a/bpp +++ b/bpp @@ -307,11 +307,11 @@ class Line until @text.empty? - if (match = /^["](?[^"]+)["]/.match(@text)) + if (match = /^["](?[^"]*)["]/.match(@text)) self << Literal.new(match["string"]) @text = match.post_match.strip - elsif (match = /^(?then\s*(go(sub|to))|then|go(sub|to))\s*(?[\w\s,.]+)+/ + elsif (match = /^(?go(sub|to))\s*(?[\w\s,.]+)+/ .match(@text)) self << Code.new(match["code"])