diff --git a/vlib/v/parser/tmpl.v b/vlib/v/parser/tmpl.v index 34e304755bbf70..e156b2ae135d1f 100644 --- a/vlib/v/parser/tmpl.v +++ b/vlib/v/parser/tmpl.v @@ -78,7 +78,7 @@ fn insert_template_code(fn_name string, tmpl_str_start string, line string) stri // escaped by cgen, unless it's a `vweb.RawHtml` string trailing_bs := tmpl_str_end + 'sb_${fn_name}.write_u8(92)\n' + tmpl_str_start round1 := ['\\', '\\\\', r"'", "\\'", r'@', r'$'] - round2 := [r'$$', r'\@', r'.$', r'.@'] + round2 := [r'$$', r'\@'] mut rline := line.replace_each(round1).replace_each(round2) comptime_call_str := rline.find_between('\${', '}') if comptime_call_str.contains("\\'") {