From: Jakub Skoczen Date: Tue, 5 Mar 2013 10:06:33 +0000 (+0100) Subject: Allow '.' to begin a word character X-Git-Tag: v1.11~5 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2868eba4a61c9ba3e4dffa71e2c660a70fbd44bf;p=cql-java-moved-to-github.git Allow '.' to begin a word character --- diff --git a/pom.xml b/pom.xml index 07fdd9c..138fb9e 100644 --- a/pom.xml +++ b/pom.xml @@ -103,7 +103,7 @@ junit junit - 3.8.1 + 4.10 test diff --git a/src/main/java/org/z3950/zing/cql/CQLLexer.java b/src/main/java/org/z3950/zing/cql/CQLLexer.java index e53a082..5376f1d 100644 --- a/src/main/java/org/z3950/zing/cql/CQLLexer.java +++ b/src/main/java/org/z3950/zing/cql/CQLLexer.java @@ -72,6 +72,8 @@ class CQLLexer extends StreamTokenizer { ordinaryChar('/'); ordinaryChar('('); ordinaryChar(')'); + ordinaryChar('.'); + wordChars('.', '.'); wordChars('\'', '\''); // prevent this from introducing strings //parseNumbers(); ordinaryChar('-');