From d2237b82c7fd0c951cb12bf5b06a823f187dd460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Thu, 14 Apr 2022 15:02:28 +0200 Subject: [PATCH] Fix grammar for real numbers Writing 22e-3 was not interpreted as a real and produced an error message. 2e-3 and 22.e-3 were correctly interpreted. --- src/language/PEGGrammar.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/language/PEGGrammar.hpp b/src/language/PEGGrammar.hpp index 723d9a710..5f8b21d3a 100644 --- a/src/language/PEGGrammar.hpp +++ b/src/language/PEGGrammar.hpp @@ -46,7 +46,7 @@ struct real >, opt< exponent > >, - seq< plus< digit, exponent > > + seq< plus< digit > , exponent > >{}; struct escaped_c : one< '\'', '"', '?', '\\', 'a', 'b', 'f', 'n', 'r', 't', 'v' > {}; -- GitLab