private boolean endOfNumber() {
        return tokens.currentIsNoIgnore(SPACE)
               || tokens.currentIsNoIgnore(RSQUAREBRACKET)
               || tokens.currentIsNoIgnore(SEMICOLON)
               || tokens.currentIsNoIgnore(RBRACE)
               || tokens.currentIsNoIgnore(EOF)
               || tokens.currentIsNoIgnore(EXCLAMATION);
    }
Returns the specified term weight, or -1 if there is no weight suffix
container-search/src/main/java/com/yahoo/prelude/query/parser/StructuredParser.java