(l *Lexer)
| 155 | } |
| 156 | |
| 157 | func not(l *Lexer) stateFn { |
| 158 | l.emit(Operator) |
| 159 | |
| 160 | l.skipSpaces() |
| 161 | |
| 162 | end := l.end |
| 163 | |
| 164 | // Get the next word. |
| 165 | for { |
| 166 | r := l.next() |
| 167 | if utils.IsAlphaNumeric(r) { |
| 168 | // absorb |
| 169 | } else { |
| 170 | l.backup() |
| 171 | break |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | switch l.word() { |
| 176 | case "in", "matches", "contains", "startsWith", "endsWith": |
| 177 | l.emit(Operator) |
| 178 | default: |
| 179 | l.end = end |
| 180 | } |
| 181 | return root |
| 182 | } |
| 183 | |
| 184 | func questionMark(l *Lexer) stateFn { |
| 185 | l.accept(".?") |
nothing calls this directly
no test coverage detected