A fix at last for the lexing bug for terms that begin with digits --
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / CQLLexer.java
index 5df3822..7aca234 100644 (file)
@@ -69,7 +69,11 @@ class CQLLexer extends StreamTokenizer {
        ordinaryChar('(');
        ordinaryChar(')');
        wordChars('\'', '\''); // prevent this from introducing strings
-       parseNumbers();
+       //parseNumbers();
+       ordinaryChar('-');
+       wordChars('-', '-');
+       ordinaryChars('0', '9');
+       wordChars('0', '9');
        DEBUG = lexdebug;
     }