At a first glance, the code below from scan.go seems to be responsible for dealing with it.
tok = s.selectToken('=', token.EQL, token.ASSIGN)
But it seams like it will return token.EQL no matter what.
selectToken will compare the current rune with the provided run, while it would make more sense to compare the next rune, ou the previous one.
At a first glance, the code below from scan.go seems to be responsible for dealing with it.
tok = s.selectToken('=', token.EQL, token.ASSIGN)
But it seams like it will return token.EQL no matter what.
selectToken
will compare the current rune with the provided run, while it would make more sense to compare the next rune, ou the previous one.Thanks