Ensure integer ranges are parsed correctly (#81)
This commit is contained in:
parent
906b969b90
commit
a9c6806745
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ use crate::sql::comment::comment;
|
|||
use crate::sql::error::IResult;
|
||||
use crate::sql::operator::{assigner, operator};
|
||||
use nom::branch::alt;
|
||||
use nom::bytes::complete::tag;
|
||||
use nom::character::complete::char;
|
||||
use nom::character::complete::multispace1;
|
||||
use nom::combinator::eof;
|
||||
|
@ -19,6 +20,7 @@ pub fn number(i: &str) -> IResult<&str, ()> {
|
|||
map(char('}'), |_| ()),
|
||||
map(char(';'), |_| ()),
|
||||
map(char(','), |_| ()),
|
||||
map(tag(".."), |_| ()),
|
||||
map(eof, |_| ()),
|
||||
)))(i)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue