From 1869e1ddbcdbdc1afe94e3c7343ebc5103934666 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 4 Aug 2022 15:11:50 +0100 Subject: [PATCH] =?UTF-8?q?Allow=20spacing=20in=20DEFINE=20FIELD=20?= =?UTF-8?q?=E2=80=A6=20TYPE=20clause?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/sql/kind.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/sql/kind.rs b/lib/src/sql/kind.rs index 56ce3909..ce780fe6 100644 --- a/lib/src/sql/kind.rs +++ b/lib/src/sql/kind.rs @@ -1,3 +1,4 @@ +use crate::sql::comment::mightbespace; use crate::sql::error::IResult; use crate::sql::table::{table, Table}; use nom::branch::alt; @@ -79,6 +80,7 @@ pub fn kind(i: &str) -> IResult<&str, Kind> { fn record(i: &str) -> IResult<&str, Vec> { let (i, _) = tag("record")(i)?; + let (i, _) = mightbespace(i)?; let (i, _) = char('(')(i)?; let (i, v) = many1(table)(i)?; let (i, _) = char(')')(i)?; @@ -87,6 +89,7 @@ fn record(i: &str) -> IResult<&str, Vec
> { fn geometry(i: &str) -> IResult<&str, Vec> { let (i, _) = tag("geometry")(i)?; + let (i, _) = mightbespace(i)?; let (i, _) = char('(')(i)?; let (i, v) = many1(map( alt((