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:
Jonathan Ellis 2009-04-24 03:02:18 +00:00
parent 83d24602fd
commit ada8209a3a
1 changed files with 5 additions and 2 deletions

View File

@ -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
//