mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
new match statement
This commit is contained in:
@ -430,6 +430,10 @@ fn (s mut Scanner) scan() ScanRes {
|
||||
s.pos++
|
||||
return scan_res(.eq, '')
|
||||
}
|
||||
else if nextc == `>` {
|
||||
s.pos++
|
||||
return scan_res(.arrow, '')
|
||||
}
|
||||
else {
|
||||
return scan_res(.assign, '')
|
||||
}
|
||||
|
Reference in New Issue
Block a user