Mark syntax errors
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / CQLLexer.java
index d7adeac..cb990cd 100644 (file)
@@ -70,7 +70,7 @@ public class CQLLexer implements CQLTokenizer {
       }
     //quoted string
     } else if (strchr("\"", c)) { //no single-quotes
-      what = '"';
+      what = TT_STRING;
       //remember quote char
       char mark = c;
       qi++;
@@ -141,7 +141,7 @@ public class CQLLexer implements CQLTokenizer {
         return "EOF";
       case TT_WORD:
         return "word: '" + val + "'";
-      case '"':
+      case TT_STRING:
         return "string: \"" + val + "\"";
       case TT_LE:
         return "<=";