diff options
Diffstat (limited to 'src/syntax/expr.rs')
| -rw-r--r-- | src/syntax/expr.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/syntax/expr.rs b/src/syntax/expr.rs index fd106eb8..e0135d1c 100644 --- a/src/syntax/expr.rs +++ b/src/syntax/expr.rs @@ -97,12 +97,14 @@ impl Expr { /// Whether the expression can be shortened in markup with a hashtag. pub fn has_short_form(&self) -> bool { matches!(self, - Expr::Ident(_) - | Expr::Call(_) - | Expr::Let(_) - | Expr::If(_) - | Expr::While(_) - | Expr::For(_) + Self::Ident(_) + | Self::Call(_) + | Self::Let(_) + | Self::If(_) + | Self::While(_) + | Self::For(_) + | Self::Import(_) + | Self::Include(_) ) } } |
