summaryrefslogtreecommitdiff
path: root/src/parse/collection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/collection.rs')
-rw-r--r--src/parse/collection.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/collection.rs b/src/parse/collection.rs
index 9addcef0..58fd91ae 100644
--- a/src/parse/collection.rs
+++ b/src/parse/collection.rs
@@ -11,7 +11,7 @@ pub fn arguments(p: &mut Parser) -> ExprArgs {
/// - Dictionary literal
/// - Parenthesized expression
pub fn parenthesized(p: &mut Parser) -> Expr {
- p.start_group(Group::Paren);
+ p.start_group(Group::Paren, TokenMode::Code);
let state = if p.eat_if(Token::Colon) {
collection(p, State::Dict(vec![]))
} else {
@@ -30,7 +30,7 @@ fn collection<T: Collection>(p: &mut Parser, mut collection: T) -> T {
collection.push_arg(p, arg);
if let Some(pos) = missing_coma.take() {
- p.diag_expected_at("comma", pos);
+ p.expected_at("comma", pos);
}
if p.eof() {