diff --git a/examples/hello_world.v b/examples/hello_world.v index bdb69bc160..fb964162bb 100644 --- a/examples/hello_world.v +++ b/examples/hello_world.v @@ -1,2 +1 @@ -println('Hello, World!') - +println('Hello, World!') diff --git a/vlib/compiler/expression.v b/vlib/compiler/expression.v index ce763858e7..842c7fce80 100644 --- a/vlib/compiler/expression.v +++ b/vlib/compiler/expression.v @@ -161,7 +161,7 @@ fn (p mut Parser) name_expr() string { mut name := p.lit // Raw string (`s := r'hello \n ') - if (name == 'r' || name == 'c') && p.peek() == .str { + if (name == 'r' || name == 'c') && p.peek() == .str && p.prev_tok != .dollar { p.string_expr() return 'string' }