changed handling of generalized string literals

This commit is contained in:
Araq
2011-02-07 00:11:11 +01:00
parent 77d045b3ac
commit 134f24f579
10 changed files with 76 additions and 39 deletions

View File

@@ -6,7 +6,8 @@ import
if "keyA = valueA" =~ re"\s*(\w+)\s*\=\s*(\w+)":
write(stdout, "key: ", matches[0])
elif "# comment!" =~ re"\s*(\#.*)":
elif "# comment!" =~ re.re"\s*(\#.*)":
# test re.re"" syntax
echo("comment: ", matches[0])
else:
echo("Bug!")