Skip to content

Commit

Permalink
make sure tests are passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Joematpal committed Sep 27, 2023
1 parent efd1597 commit 1e4cebe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions engine/parser/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,12 @@ func (l *lexer) lex(instruction []byte) ([]Token, error) {
for l.pos < l.instructionLen {
r = false
for _, m := range matchers {
// fmt.Println("here!", string(l.instruction[l.pos:]))
if r = m(); r {
securityPos = l.pos
break
}
}
fmt.Println("l.tokens", l.tokens)

if r {
continue
}
Expand Down Expand Up @@ -333,9 +332,8 @@ func (l *lexer) MatchBooleanToken() bool {
i := l.pos
for i < l.instructionLen &&
(unicode.IsLetter(rune(l.instruction[i])) ||
unicode.IsDigit(rune(l.instruction[i])) ||
l.instruction[i] == '_' ||
l.instruction[i] == '@' /* || l.instruction[i] == '.'*/) {
l.instruction[i] == '@') {
i++
}

Expand Down

0 comments on commit 1e4cebe

Please sign in to comment.