mirror of https://github.com/apache/cassandra
fix hostname parsing in cli. patch by Eric Evans; reviewed by jbellis for #100
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@768137 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
83d24602fd
commit
ada8209a3a
|
|
@ -150,7 +150,7 @@ value: StringLiteral;
|
|||
|
||||
columnOrSuperColumn: StringLiteral;
|
||||
|
||||
host: id+=Identifier (id+=DOT id+=Identifier)* -> ^(NODE_ID_LIST $id+);
|
||||
host: id+=HostIdentifier -> ^(NODE_ID_LIST $id+);
|
||||
|
||||
ip: id+=IntegerLiteral id+=DOT id+=IntegerLiteral id+=DOT id+=IntegerLiteral id+=DOT id+=IntegerLiteral -> ^(NODE_ID_LIST $id+);
|
||||
|
||||
|
|
@ -200,7 +200,6 @@ Identifier
|
|||
: Letter ( Letter | Digit | '_')*
|
||||
;
|
||||
|
||||
|
||||
// literals
|
||||
StringLiteral
|
||||
:
|
||||
|
|
@ -211,6 +210,10 @@ IntegerLiteral
|
|||
: Digit+;
|
||||
|
||||
|
||||
HostIdentifier
|
||||
: ( Letter | Digit ) ( Letter | Digit | DOT | '-' )* ( Letter | Digit )
|
||||
;
|
||||
|
||||
//
|
||||
// syntactic elements
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue