1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

scanner: remove unicode operator (#7766)

This commit is contained in:
zakuro 2021-01-01 20:05:28 +09:00 committed by GitHub
parent 480d78de2e
commit 73f41f9a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -842,19 +842,6 @@ fn (mut s Scanner) text_scan() token.Token {
return s.new_token(.gt, '', 1)
}
}
0xE2 {
if nextc == 0x89 && s.text[s.pos + 2] == 0xA0 {
// case `≠`:
s.pos += 2
return s.new_token(.ne, '', 3)
} else if nextc == 0x89 && s.text[s.pos + 2] == 0xBD {
s.pos += 2
return s.new_token(.le, '', 3)
} else if nextc == 0xA9 && s.text[s.pos + 2] == 0xBE {
s.pos += 2
return s.new_token(.ge, '', 3)
}
}
`<` {
if nextc == `=` {
s.pos++