From f58798fabcd4c65e4296ab2dbd619e68e4eceb96 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 10 Jul 2024 14:08:18 +0100 Subject: [PATCH] Revert "Parser fix based on https://github.com/espruino/Espruino/pull/2529" because of https://github.com/espruino/Espruino/pull/2529#issuecomment-2220359705 This reverts commit 05918f800e5a643e1e57b4db95b675b98ef33a53. --- core/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils.js b/core/utils.js index 6b65478..59d35fa 100644 --- a/core/utils.js +++ b/core/utils.js @@ -114,7 +114,7 @@ "delete","do","else","enum","eval","export","extends","field","final","finally","for","function","goto", "if","implements","import","in","instanceof","native","new","package","private","protected","public", "return","static","switch","synchronized","throw","throws","transient","try","typeof","var","volatile","while","with"]; - var allowedRegExChars = ['!','%','&','*','+','-','/','<','=','>','?','[','{','}','(',')',',',';',':']; // based on Espruino jslex.c (may not match spec 100%) + var allowedRegExChars = ['!','%','&','*','+','-','/','<','=','>','?','[','{','}','(',',',';',':']; // based on Espruino jslex.c (may not match spec 100%) var ch; var idx = 0; var lineNumber = 1;