Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
2 additions
and
1 deletion.
-
+1
−0
tests/test_parser.py
-
+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(): |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.