Allow '.' to begin a word character
authorJakub Skoczen <jakub@indexdata.dk>
Tue, 5 Mar 2013 10:06:33 +0000 (11:06 +0100)
committerJakub Skoczen <jakub@indexdata.dk>
Tue, 5 Mar 2013 10:06:33 +0000 (11:06 +0100)
pom.xml
src/main/java/org/z3950/zing/cql/CQLLexer.java

diff --git a/pom.xml b/pom.xml
index 07fdd9c..138fb9e 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
-      <version>3.8.1</version>
+      <version>4.10</version>
       <scope>test</scope>
     </dependency>
   </dependencies>
index e53a082..5376f1d 100644 (file)
@@ -72,6 +72,8 @@ class CQLLexer extends StreamTokenizer {
        ordinaryChar('/');
        ordinaryChar('(');
        ordinaryChar(')');
+        ordinaryChar('.');
+        wordChars('.', '.');
        wordChars('\'', '\''); // prevent this from introducing strings
        //parseNumbers();
        ordinaryChar('-');