Skip to content
Permalink
Browse files

parse another global var

  • Loading branch information
alex committed Jun 23, 2013
1 parent 497953f commit 196c6f8de18a3471a7c87989cafd9ac1eefbc0ea
Showing with 2 additions and 1 deletion.
  1. +1 −0 tests/test_parser.py
  2. +1 −1 topaz/lexer.py
@@ -2145,6 +2145,7 @@ def test_global_var(self, space):
assert space.parse("$-w") == simple_global("$-w")
assert space.parse("$@") == simple_global("$@")
assert space.parse("$;") == simple_global("$;")
assert space.parse("$<") == simple_global("$<")

def test_comments(self, space):
r = space.parse("""
@@ -536,7 +536,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 196c6f8

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