scanner: remove unicode operator (#7766)

pull/7781/head
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
1 changed files with 0 additions and 13 deletions

View File

@ -842,19 +842,6 @@ fn (mut s Scanner) text_scan() token.Token {
return s.new_token(.gt, '', 1) 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 == `=` { if nextc == `=` {
s.pos++ s.pos++