cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject git commit: cqlsh: learn to tokenize [] and {} brackets
Date Sun, 05 Aug 2012 12:53:59 GMT
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 <jbellis@apache.org>
Authored: Sun Aug 5 07:53:45 2012 -0500
Committer: Jonathan Ellis <jbellis@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>    ::= /"([^"]|"")*/ ;


Mime
View raw message