We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9c3aec + 5e7a29f commit f520183Copy full SHA for f520183
lexer/lexer.go
@@ -168,6 +168,11 @@ func (l *Lexer) NextToken() token.Token {
168
} else {
169
tok = newToken(token.MODULUS, l.line, l.ch)
170
}
171
+ case rune('#'):
172
+ if l.peekChar() == rune('!') && l.line == 1 {
173
+ l.skipSingleLineComment()
174
+ return l.NextToken()
175
+ }
176
case 0:
177
tok.Literal = ""
178
tok.Type = token.EOF
token/token.go
@@ -44,6 +44,7 @@ const (
44
ASTERISK_ASSIGN = "*="
45
SLASH_ASSIGN = "/="
46
MODULUS_ASSIGN = "%="
47
+ SHEBANG = "#!"
48
49
//Delimiters
50
COMMA = ","
0 commit comments