From 6cc7488905289f4e1c4aed74cf97342b936844a3 Mon Sep 17 00:00:00 2001 From: Tpt Date: Tue, 13 Jun 2023 21:46:58 +0200 Subject: [PATCH] SPARQL: requires decimal digits for DECIMAL serialization Follows SPARQL 1.1 grammar --- lib/spargebra/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spargebra/src/parser.rs b/lib/spargebra/src/parser.rs index fbe7af91..daeddd55 100644 --- a/lib/spargebra/src/parser.rs +++ b/lib/spargebra/src/parser.rs @@ -2174,7 +2174,7 @@ parser! { rule INTEGER() = ['0'..='9']+ - rule DECIMAL() = ['0'..='9']+ "." ['0'..='9']* / ['0'..='9']* "." ['0'..='9']+ + rule DECIMAL() = ['0'..='9']* "." ['0'..='9']+ rule DOUBLE() = (['0'..='9']+ "." ['0'..='9']* / "." ['0'..='9']+ / ['0'..='9']+) EXPONENT()