diff --git a/src/utils/read_until.rs b/src/utils/read_until.rs index 2732642..abe0abb 100644 --- a/src/utils/read_until.rs +++ b/src/utils/read_until.rs @@ -31,6 +31,7 @@ pub(crate) fn read_until_open_curly_brace>( if toks.peek().is_some() { t.push(toks.next().unwrap()); } + continue; } _ => {} } diff --git a/tests/if.rs b/tests/if.rs index e0d3c87..08a12ef 100644 --- a/tests/if.rs +++ b/tests/if.rs @@ -122,3 +122,7 @@ error!( condition_is_evaluated_eagerly, "@if 1 + 1 =s {\n}", "Error: expected \"=\"." ); +error!( + nothing_after_escape, + "@if \\", "Error: Expected expression." +);