1
0
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:
Alexander Medvednikov
2019-07-17 01:43:59 +02:00
parent 3f506714ec
commit a9463a180d
4 changed files with 35 additions and 8 deletions

View File

@ -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, '')
}