Skip to content

Commit

Permalink
Allow quoting inside char class
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiers authored Jun 6, 2024
1 parent 7f80eff commit 9150f67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/antlr4/nl/bigo/pcreparser/PCREParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ character_class
;

character_class_atom
: character_class_range
: quoting
| character_class_range
| posix_character_class
| character
| character_type
| '\\' .
| ~( '\\' | ']' )
;

Expand Down Expand Up @@ -268,8 +268,8 @@ match_point_reset
;

quoting
: '\\' .
| '\\' 'Q' .*? '\\' 'E'
: '\\' 'Q' .*? '\\' 'E'
| '\\' .
;

// Helper rules
Expand Down Expand Up @@ -324,4 +324,4 @@ mark : 'M' 'A' 'R' 'K';
commit : 'C' 'O' 'M' 'M' 'I' 'T';
prune : 'P' 'R' 'U' 'N' 'E';
skip : 'S' 'K' 'I' 'P';
then : 'T' 'H' 'E' 'N';
then : 'T' 'H' 'E' 'N';

0 comments on commit 9150f67

Please sign in to comment.