Skip to content
Permalink
Browse files

fix parsing $;

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 21, 2013
1 parent 70a9015 commit 18e888e9b599f77fdb2dd9ad233b94569378c710
Showing with 2 additions and 1 deletion.
  1. +1 −0 tests/test_parser.py
  2. +1 −1 topaz/lexer.py
@@ -2110,6 +2110,7 @@ def test_global_var(self, space):
assert space.parse("$,") == simple_global("$,")
assert space.parse("$-w") == simple_global("$-w")
assert space.parse("$@") == simple_global("$@")
assert space.parse("$;") == simple_global("$;")

def test_comments(self, space):
r = space.parse("""
@@ -533,7 +533,7 @@ def dollar(self, ch):
self.add(ch)
self.state = self.EXPR_END
ch = self.read()
if ch in "$>:?\\!\"~&`'+/,@":
if ch in "$>:?\\!\"~&`'+/,@;":
self.add(ch)
yield self.emit("GVAR")
elif ch == "-" and self.peek().isalnum():

0 comments on commit 18e888e

Please sign in to comment.
You can’t perform that action at this time.