From 2868eba4a61c9ba3e4dffa71e2c660a70fbd44bf Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Tue, 5 Mar 2013 11:06:33 +0100 Subject: [PATCH] Allow '.' to begin a word character --- pom.xml | 2 +- src/main/java/org/z3950/zing/cql/CQLLexer.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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('-'); -- 1.7.10.4