mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
a separate scope for x := opt, part 2
This commit is contained in:
parent
b26a0bde38
commit
7069cd6ab5
@ -106,9 +106,9 @@ fn (table mut Table) parse_cflag(cflag string, mod string) ?bool {
|
|||||||
index = i
|
index = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if i2 := flag.index(',') {
|
if i := flag.index(',') {
|
||||||
if index == -1 || i2 < index {
|
if index == -1 || i < index {
|
||||||
index = i2
|
index = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if index != -1 && flag[index] == ` ` && flag[index+1] == `-` {
|
if index != -1 && flag[index] == ` ` && flag[index+1] == `-` {
|
||||||
|
Loading…
Reference in New Issue
Block a user