go/scanner: don't return token.INVALID for ".." sequence
Per the spec, "...the next token is the longest sequence of characters that form a valid token." Thus, encountering a ".." sequence should return two token.PERIOD tokens rather than a single token.ILLEGAL. Fixes #28112. Change-Id: Iba5da841f40036e53f48f9be23f933f362e67f5e Reviewed-on: https://go-review.googlesource.com/c/141337Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Showing
Please
register
or
sign in
to comment