mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
minor fixes and cleaning up
This commit is contained in:
parent
aeda48d94e
commit
3344111a03
7 changed files with 25 additions and 48 deletions
|
@ -20,7 +20,12 @@ fn (p mut Parser) string_expr() {
|
|||
*/
|
||||
|
||||
if (p.calling_c && p.peek() != .dot) || is_cstr || (p.pref.translated && p.mod == 'main') {
|
||||
p.gen('"$f"')
|
||||
if p.os == .windows {
|
||||
p.gen('L"$f"')
|
||||
}
|
||||
else {
|
||||
p.gen('"$f"')
|
||||
}
|
||||
}
|
||||
else if p.is_sql {
|
||||
p.gen("'$str'")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue