Skip to content

Commit

Permalink
Fix 48: Ruby - square brackets don't support bracket matching
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbylight committed Jun 10, 2022
1 parent 8a9b32c commit 1fd58af
Show file tree
Hide file tree
Showing 3 changed files with 591 additions and 591 deletions.
Expand Up @@ -358,8 +358,8 @@ DecimalLiteral = ({BinaryIntLiteral}|{OctalLiteral}|{DecimalLiteral1}|{Decima
HexLiteral = ("0x"{HexDigit}([0-9a-zA-Z_]*{HexDigit})?)
FloatLiteral = ({NonzeroDigit}({DigitOrUnderscore}*{Digit})?[Ee][+-]?({Digit}({DigitOrUnderscore}*{Digit})?)?)

Separator = ([\(\)\{\}])
Operator1 = ("::"|"."|"["|"]"|"-"|"+"|"!"|"~"|"*"|"/"|"%"|"<<"|">>"|"&"|"|"|"^")
Separator = ([\(\)\{\}\[\]])
Operator1 = ("::"|"."|"-"|"+"|"!"|"~"|"*"|"/"|"%"|"<<"|">>"|"&"|"|"|"^")
Operator2 = (">"|">="|"<"|"<="|"<=>"|"=="|"==="|"!="|"=~"|"!~"|"&&"|"||")
Operator3 = (".."|"..."|"="|"+="|"-="|"*="|"/="|"%=")
Operator = ({Operator1}|{Operator2}|{Operator3})
Expand Down

0 comments on commit 1fd58af

Please sign in to comment.