Skip to content
Permalink
Browse files

Fixed parsing `$.`

  • Loading branch information
alex committed Jun 30, 2013
1 parent 9a271ec commit ec8ff167768bb012c3276e3b3fc1c9cb9e3c6471
Showing with 2 additions and 1 deletion.
  1. +1 −0 tests/test_parser.py
  2. +1 −1 topaz/lexer.py
@@ -2146,6 +2146,7 @@ def test_global_var(self, space):
assert space.parse("$@") == simple_global("$@")
assert space.parse("$;") == simple_global("$;")
assert space.parse("$<") == simple_global("$<")
assert space.parse("$.") == simple_global("$.")

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

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