Skip to content

Commit

Permalink
correct parsing of _
Browse files Browse the repository at this point in the history
  • Loading branch information
pruemmer committed Apr 6, 2022
1 parent 35284ec commit 9de37d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ecma2020regex.cf
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,12 @@ ControlLetterX. ControlLetter ::= "X";
ControlLetterY. ControlLetter ::= "Y";
ControlLetterZ. ControlLetter ::= "Z";

token SpecialNormalChar (char - ["@<>=-^$/\\.,:*+?!()[]{}|0123456789a-zA-Z"]);
token SpecialNormalChar (char - ["@<>=-^$/\\.,:*+?!()[]{}|_0123456789a-zA-Z"]);

ControlLetterNormalChar. NormalChar ::= ControlLetter;
SpecialLetterNormalChar. NormalChar ::= SpecialNormalChar;
ExtraLetterNormalChar. NormalChar ::= ExtraNormalChar;
UnderscoreNormalChar. NormalChar ::= "_";

NormalChar1. ExtraNormalChar ::= ",";
NormalChar2. ExtraNormalChar ::= "<";
Expand Down
Binary file modified target/ecma2020-regex-parser-0.6.jar
Binary file not shown.

0 comments on commit 9de37d3

Please sign in to comment.