Skip to content

Commit

Permalink
Fix \] escapes in character classes
Browse files Browse the repository at this point in the history
  • Loading branch information
deimonn committed Apr 27, 2024
1 parent cc893ff commit d2c8b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntaxes/re2c.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
},
{
"comment": "Character class.",
"match": "(\\[)((?:\\\\\\[|[^\\]\n])*)(])",
"match": "(\\[)((?:\\\\\\]|[^\\]\n])*)(])",
"captures": {
"1": { "name": "punctuation.definition.character-class.begin.re2c" },
"2": {
Expand Down

0 comments on commit d2c8b64

Please sign in to comment.