mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
1
This commit is contained in:
parent
5ba354fa2c
commit
96c3f10a0e
@ -1185,7 +1185,7 @@ fn (p mut Parser) close_scope() {
|
||||
//if p.fileis('str.v') {
|
||||
//println('freeing str $v.name')
|
||||
//}
|
||||
//continue
|
||||
continue
|
||||
} else if v.ptr || v.typ.ends_with('*') {
|
||||
free_fn = 'v_ptr_free'
|
||||
//continue
|
||||
|
@ -247,7 +247,7 @@ fn (s mut Scanner) scan() ScanRes {
|
||||
}
|
||||
// End of $var, start next string
|
||||
if s.inter_end {
|
||||
if s.text[s.pos] == `\'` {
|
||||
if s.text[s.pos] == single_quote {
|
||||
s.inter_end = false
|
||||
return scan_res(.str, '')
|
||||
}
|
||||
@ -277,7 +277,7 @@ fn (s mut Scanner) scan() ScanRes {
|
||||
// 'asdf $b' => "b" is the last name in the string, dont start parsing string
|
||||
// at the next ', skip it
|
||||
if s.inside_string {
|
||||
if next_char == `\'` {
|
||||
if next_char == single_quote {
|
||||
s.inter_end = true
|
||||
s.inter_start = false
|
||||
s.inside_string = false
|
||||
@ -367,7 +367,7 @@ fn (s mut Scanner) scan() ScanRes {
|
||||
if s.inside_string {
|
||||
s.pos++
|
||||
// TODO UNNEEDED?
|
||||
if s.text[s.pos] == `\'` {
|
||||
if s.text[s.pos] == single_quote {
|
||||
s.inside_string = false
|
||||
return scan_res(.str, '')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user