You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2012/08/05 14:53:59 UTC

git commit: cqlsh: learn to tokenize [] and {} brackets

Updated Branches:
  refs/heads/trunk afb2c00e5 -> 167da9551


cqlsh: learn to tokenize [] and {} brackets

patch by Paul Cannon; reviewed by jbellis for CASSANDRA-4485


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/167da955
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/167da955
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/167da955

Branch: refs/heads/trunk
Commit: 167da95513d415cbeee8f3d33f0cbcc96742f492
Parents: afb2c00
Author: Jonathan Ellis <jb...@apache.org>
Authored: Sun Aug 5 07:53:45 2012 -0500
Committer: Jonathan Ellis <jb...@apache.org>
Committed: Sun Aug 5 07:53:45 2012 -0500

----------------------------------------------------------------------
 pylib/cqlshlib/cql3handling.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/167da955/pylib/cqlshlib/cql3handling.py
----------------------------------------------------------------------
diff --git a/pylib/cqlshlib/cql3handling.py b/pylib/cqlshlib/cql3handling.py
index 5099322..63a5d0c 100644
--- a/pylib/cqlshlib/cql3handling.py
+++ b/pylib/cqlshlib/cql3handling.py
@@ -164,6 +164,7 @@ JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ;
 <endtoken> ::=      ";" ;
 <op> ::=            /[-+=,().]/ ;
 <cmp> ::=           /[<>]=?/ ;
+<brackets> ::=      /[][{}]/ ;
 
 <unclosedString>  ::= /'([^']|'')*/ ;
 <unclosedName>    ::= /"([^"]|"")*/ ;