From 32879581e53fae5e684c24b44433172d8375d69e Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Mon, 11 Mar 2024 16:22:06 -0600 Subject: support underscores in function application, add sign entity --- src/interpreter/PeggyParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interpreter/PeggyParser.js') diff --git a/src/interpreter/PeggyParser.js b/src/interpreter/PeggyParser.js index 121cf9d..f5376b3 100644 --- a/src/interpreter/PeggyParser.js +++ b/src/interpreter/PeggyParser.js @@ -215,7 +215,7 @@ export default (function () { var peg$c2 = "."; var peg$c3 = "\r\n"; - var peg$r0 = /^[a-zA-Z0-9]/; + var peg$r0 = options.allowUnderscores ? /^[a-zA-Z0-9_]/ : /^[a-zA-Z0-9]/; var peg$r1 = /^[\\\u03BB]/; var peg$r2 = /^[\t-\n ]/; -- cgit v1.2.3-70-g09d2