We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6829c commit 869bc2dCopy full SHA for 869bc2d
src/tokenizer.rs
@@ -203,14 +203,17 @@ impl<'a> TokenStream<'a> {
203
'"' => {
204
return Ok((StringValue, idx+1));
205
}
206
- // TODO(tailhook) ensure SourceCharacter
207
- // and not newline
+ '\n' => {
+ return Err(Error::unexpected_message(
208
+ "unterminated string value"));
209
+ }
210
_ => {}
211
212
prev_char = cur_char;
213
214
215
216
- return Ok((Name, self.buf.len() - self.off));
217
218
_ => return Err(Error::unexpected_message(
219
format_args!("unexpected character {:?}", cur_char))),
0 commit comments