From 738438f3da478a1d0121cbbdab620c47f222c73e Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Wed, 19 Mar 2014 15:32:31 +0100 Subject: [PATCH] Mark syntax errors --- src/main/java/org/z3950/zing/cql/CQLParser.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/z3950/zing/cql/CQLParser.java b/src/main/java/org/z3950/zing/cql/CQLParser.java index 4d4f025..8a0fc17 100644 --- a/src/main/java/org/z3950/zing/cql/CQLParser.java +++ b/src/main/java/org/z3950/zing/cql/CQLParser.java @@ -478,6 +478,11 @@ public class CQLParser { root = parser.parse(cql); } catch (CQLParseException ex) { System.err.println("Syntax error: " + ex.getMessage()); + StringBuilder space = new StringBuilder(cql.length()); + System.out.println(cql); + for (int i=0; i