From 0c2fe82f3223bf0395e1d3b61546d0436275c37f Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sat, 17 Dec 2022 16:23:20 +0000 Subject: [PATCH] Allow whitespace around JavaScript function arguments Closes #1530 --- lib/src/sql/function.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/sql/function.rs b/lib/src/sql/function.rs index 58ac4f88..a1e5ca9a 100644 --- a/lib/src/sql/function.rs +++ b/lib/src/sql/function.rs @@ -177,7 +177,9 @@ fn script(i: &str) -> IResult<&str, Function> { let (i, _) = alt((tag("fn::script"), tag("fn"), tag("function")))(i)?; let (i, _) = mightbespace(i)?; let (i, _) = tag("(")(i)?; + let (i, _) = mightbespace(i)?; let (i, a) = separated_list0(commas, value)(i)?; + let (i, _) = mightbespace(i)?; let (i, _) = tag(")")(i)?; let (i, _) = mightbespace(i)?; let (i, _) = char('{')(i)?;