syntax: Make match arm parsing more restrictive again
Require comma separators for all expression types except the plain block
This commit is contained in:
parent
abf4421e7c
commit
2772b2e5c7
36 changed files with 107 additions and 156 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue