File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 73
73
%token co:comment .*?(?=(?<!\\)\))
74
74
75
75
// Capturing group.
76
- %token named_capturing_ \(\?< -> nc
76
+ %token named_capturing_ \(\?P?< -> nc
77
77
%token nc:_named_capturing > -> default
78
78
%token nc:capturing_name .+?(?=(?<!\\)>)
79
79
%token non_capturing_ \(\?:
109
109
// Please, see PCRESYNTAX(3), General Category properties, PCRE special category
110
110
// properties and script names for \p{} and \P{}.
111
111
%token character_type \\([CdDhHNRsSvVwWX]|[pP]{[^}]+})
112
- %token anchor \\(bBAZzG)|\^|\$
112
+ %token anchor \\([ bBAZzG] )|\^|\$
113
113
%token match_point_reset \\K
114
114
%token literal \\.|.
115
115
168
168
::negative_class_:: # negativeclass
169
169
| ::class_::
170
170
)
171
- ( range() | literal() )+
171
+ ( <class_> | range() | literal() )+
172
172
::_class::
173
173
174
174
# range:
178
178
capturing()
179
179
| literal()
180
180
181
- capturing:
181
+ # capturing:
182
182
::comment_:: <comment>? ::_comment:: # comment
183
183
| (
184
184
::named_capturing_:: <capturing_name> ::_named_capturing:: # namedcapturing
191
191
192
192
literal:
193
193
<character>
194
+ | <range>
194
195
| <dynamic_character>
195
196
| <character_type>
196
197
| <anchor>
You can’t perform that action at this time.
0 commit comments