From 3ab03bc3e1b3368185428c512d9f0e77c4a8fab8 Mon Sep 17 00:00:00 2001 From: azjezz Date: Mon, 5 Dec 2022 12:32:36 +0100 Subject: [PATCH] fix: formatting Signed-off-by: azjezz --- src/lexer/mod.rs | 2 +- src/parser/mod.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lexer/mod.rs b/src/lexer/mod.rs index 696577a..4c0354a 100644 --- a/src/lexer/mod.rs +++ b/src/lexer/mod.rs @@ -154,7 +154,7 @@ impl Lexer { state.next(); state.set(StackFrame::ShellExec)?; TokenKind::Backtick - }, + } [b'@', ..] => { state.next(); diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 0a33153..332e8b2 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -1264,7 +1264,10 @@ impl Parser { let path = self.expression(state, Precedence::Lowest)?; - Expression::Include { kind, path: Box::new(path) } + Expression::Include { + kind, + path: Box::new(path), + } } _ if is_prefix(&state.current.kind) => { let op = state.current.kind.clone();