Skip to content

Commit 935bb62

Browse files
author
Chris Guimaraes
committed
whitespace issue
1 parent 1b3db84 commit 935bb62

File tree

1 file changed

+2
-0
lines changed
  • clarity/src/vm/ast/parser/v2

1 file changed

+2
-0
lines changed

clarity/src/vm/ast/parser/v2/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ enum ParserStackElement {
6565

6666
impl<'a> Parser<'a> {
6767
pub fn new(input: &'a str, fail_fast: bool) -> Result<Self, ParseErrors> {
68+
let fail_fast = false;
6869
let lexer = match Lexer::new(input, fail_fast) {
6970
Ok(lexer) => lexer,
7071
Err(e) => return Err(ParseErrors::Lexer(e)),
@@ -221,6 +222,7 @@ impl<'a> Parser<'a> {
221222
} => {
222223
if let Some(node) = node_opt {
223224
if !*whitespace && node.match_comment().is_none() {
225+
dbg!(&node);
224226
self.add_diagnostic(ParseErrors::ExpectedWhitespace, node.span().clone())?;
225227
}
226228
nodes.push(node);

0 commit comments

Comments
 (0)