1
Fork 0

syntax: Make match arm parsing more restrictive again

Require comma separators for all expression types except the plain block
This commit is contained in:
Brian Anderson 2012-08-06 17:14:32 -07:00
parent abf4421e7c
commit 2772b2e5c7
36 changed files with 107 additions and 156 deletions

View file

@ -172,7 +172,7 @@ impl parser for parser {
'"' => match self.parse_str() {
ok(s) => ok(string(s)),
err(e) => err(e)
}
},
'[' => self.parse_list(),
'{' => self.parse_object(),
_ => self.error(~"invalid syntax")