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();