From 848295cdea9b04689bbfda726f6fd08aa34f54c5 Mon Sep 17 00:00:00 2001 From: Lukas Neubert Date: Mon, 15 Feb 2021 16:54:30 +0100 Subject: [PATCH] scanner: do not warn on \' after string interpolation (#8729) --- vlib/v/scanner/scanner.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/scanner/scanner.v b/vlib/v/scanner/scanner.v index cfc5487cbf..8918d86aba 100644 --- a/vlib/v/scanner/scanner.v +++ b/vlib/v/scanner/scanner.v @@ -609,7 +609,7 @@ fn (mut s Scanner) text_scan() token.Token { // end of `$expr` // allow `'$a.b'` and `'$a.c()'` if s.is_inter_start && next_char == `\\` - && s.look_ahead(2) !in [`x`, `n`, `r`, `\\`, `t`, `e`, `"`] { + && s.look_ahead(2) !in [`x`, `n`, `r`, `\\`, `t`, `e`, `"`, `\'`] { s.warn('unknown escape sequence \\${s.look_ahead(2)}') } if s.is_inter_start && next_char == `(` {