|
@@ -6,7 +6,7 @@ Lexer only supports single-byte character sets like ASCII.
|
|
|
package lexer
|
|
|
|
|
|
import (
|
|
|
- "fgm/waiig15/token"
|
|
|
+ "code.osinet.fr/fgm/waiig15/token"
|
|
|
)
|
|
|
|
|
|
type Lexer struct {
|
|
@@ -141,7 +141,10 @@ func isLetter(ch byte) bool {
|
|
|
}
|
|
|
|
|
|
func (l *Lexer) skipWhitespace() {
|
|
|
- for l.ch == ' ' || l.ch == '\t' || l.ch == '\n' || l.ch == '\r' {
|
|
|
+ for l.ch == ' ' ||
|
|
|
+ l.ch == '\r' ||
|
|
|
+ l.ch == '\t' ||
|
|
|
+ l.ch == '\n' {
|
|
|
l.readChar()
|
|
|
}
|
|
|
}
|