Skip to content

Commit 4b728d9

Browse files
authored
[pcre] Fix quoting bug (#3828)
1 parent ee4f01a commit 4b728d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pcre/PCRE.g4

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,7 @@ match_point_reset
264264
;
265265

266266
quoting
267-
: '\\' .
268-
| '\\' 'Q' .*? '\\' 'E'
267+
: '\\' ('Q' .*? '\\' 'E' | .)
269268
;
270269

271270
// Helper rules
@@ -445,4 +444,4 @@ D9 : '9';
445444

446445
OTHER
447446
: .
448-
;
447+
;

0 commit comments

Comments
 (0)