Skip to content
Permalink
Browse files

Fix for parsing $@

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 11, 2013
1 parent a431fb7 commit 372b9559e5a46095e8ffeaa966cadf4996fad23e
Showing with 2 additions and 1 deletion.
  1. +1 −0 tests/test_parser.py
  2. +1 −1 topaz/lexer.py
@@ -2109,6 +2109,7 @@ def test_global_var(self, space):
assert space.parse("$+") == simple_global("$+")
assert space.parse("$,") == simple_global("$,")
assert space.parse("$-w") == simple_global("$-w")
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 372b955

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