Merge branch 'v1.3-fixes'

This commit is contained in:
Stephen Chung
2021-12-16 22:40:25 +08:00
4 changed files with 37 additions and 27 deletions

View File

@@ -2475,7 +2475,8 @@ impl Expr {
| Self::Dot(_, _, _)
| Self::Index(_, _, _)
| Self::Array(_, _)
| Self::Map(_, _) => match token {
| Self::Map(_, _)
| Self::Custom(_, _) => match token {
#[cfg(not(feature = "no_index"))]
Token::LeftBracket => true,
_ => false,
@@ -2497,8 +2498,6 @@ impl Expr {
_ => false,
},
Self::Custom(_, _) => false,
Self::Stack(_, _) => false,
}
}