summaryrefslogtreecommitdiff
path: root/src/syntax/expr.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-09 10:45:49 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-09 10:45:49 +0200
commitedff2ae6803928e59eae96e2f75cd62a7e24c76f (patch)
tree7b7f3f546dac8f1639d4331948ea8227f925f2f8 /src/syntax/expr.rs
parent5afb42ad89abb518a01a09051f0f9b6f75bd383e (diff)
Remove template pretty printing
Was buggy and pretty useless anyway since it couldn't peek into function templates.
Diffstat (limited to 'src/syntax/expr.rs')
-rw-r--r--src/syntax/expr.rs14
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(_)
)
}
}