Allow spacing in DEFINE FIELD … TYPE clause
This commit is contained in:
parent
4d36c647f6
commit
1869e1ddbc
1 changed files with 3 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
use crate::sql::comment::mightbespace;
|
||||||
use crate::sql::error::IResult;
|
use crate::sql::error::IResult;
|
||||||
use crate::sql::table::{table, Table};
|
use crate::sql::table::{table, Table};
|
||||||
use nom::branch::alt;
|
use nom::branch::alt;
|
||||||
|
@ -79,6 +80,7 @@ pub fn kind(i: &str) -> IResult<&str, Kind> {
|
||||||
|
|
||||||
fn record(i: &str) -> IResult<&str, Vec<Table>> {
|
fn record(i: &str) -> IResult<&str, Vec<Table>> {
|
||||||
let (i, _) = tag("record")(i)?;
|
let (i, _) = tag("record")(i)?;
|
||||||
|
let (i, _) = mightbespace(i)?;
|
||||||
let (i, _) = char('(')(i)?;
|
let (i, _) = char('(')(i)?;
|
||||||
let (i, v) = many1(table)(i)?;
|
let (i, v) = many1(table)(i)?;
|
||||||
let (i, _) = char(')')(i)?;
|
let (i, _) = char(')')(i)?;
|
||||||
|
@ -87,6 +89,7 @@ fn record(i: &str) -> IResult<&str, Vec<Table>> {
|
||||||
|
|
||||||
fn geometry(i: &str) -> IResult<&str, Vec<String>> {
|
fn geometry(i: &str) -> IResult<&str, Vec<String>> {
|
||||||
let (i, _) = tag("geometry")(i)?;
|
let (i, _) = tag("geometry")(i)?;
|
||||||
|
let (i, _) = mightbespace(i)?;
|
||||||
let (i, _) = char('(')(i)?;
|
let (i, _) = char('(')(i)?;
|
||||||
let (i, v) = many1(map(
|
let (i, v) = many1(map(
|
||||||
alt((
|
alt((
|
||||||
|
|
Loading…
Reference in a new issue