Tweak which characters are in which class. In particular, most
authormike <mike>
Sat, 2 Nov 2002 01:21:35 +0000 (01:21 +0000)
committermike <mike>
Sat, 2 Nov 2002 01:21:35 +0000 (01:21 +0000)
visible ASCIIs ("!", "%", etc.) are now word-constituent.

src/org/z3950/zing/cql/CQLLexer.java

index ce38eb6..8d054d9 100644 (file)
@@ -1,4 +1,4 @@
-// $Id: CQLLexer.java,v 1.3 2002-11-01 23:45:28 mike Exp $
+// $Id: CQLLexer.java,v 1.4 2002-11-02 01:21:35 mike Exp $
 
 package org.z3950.zing.cql;
 import java.io.StreamTokenizer;
@@ -80,6 +80,9 @@ class CQLLexer extends StreamTokenizer {
 
     CQLLexer(String cql, boolean lexdebug) {
        super(new StringReader(cql));
+       wordChars('!', '?');    // ASCII-dependency!
+       wordChars('[', '`');    // ASCII-dependency!
+       quoteChar('"');
        ordinaryChar('=');
        ordinaryChar('<');
        ordinaryChar('>');