From d29b77ca610314c6a53492edf7aa004034352cef Mon Sep 17 00:00:00 2001 From: Umur Ozkul Date: Thu, 25 Aug 2022 22:19:29 +0200 Subject: [PATCH] fix #1007 variables that start with true/false --- .../Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.peggy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.peggy b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.peggy index 15837da4..00467d86 100644 --- a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.peggy +++ b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.peggy @@ -250,8 +250,8 @@ float 'float' d = [0-9] boolean 'boolean' - = ('true'/'false') - { return h.nodeBoolean(text() === 'true')} + = ('true'/'false') ! [a-z]i ! [_$] + { return h.nodeBoolean(text() === 'true')} valueConstructor = recordConstructor