@bablr/language-en-regex-vm-pattern 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/grammar.js +4 -0
- package/package.json +1 -1
package/lib/grammar.js
CHANGED
|
@@ -132,13 +132,17 @@ export const grammar = class RegexGrammar {
|
|
|
132
132
|
|
|
133
133
|
*Group() {
|
|
134
134
|
yield eat(m`openToken*: <* '(?:' />`);
|
|
135
|
+
yield startSpan('Pattern', ')');
|
|
135
136
|
yield eat(m`<__Alternatives />`);
|
|
137
|
+
yield endSpan();
|
|
136
138
|
yield eat(m`closeToken*: <* ')' />`);
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
*CapturingGroup() {
|
|
140
142
|
yield eat(m`openToken*: <* '(' />`);
|
|
143
|
+
yield startSpan('Pattern', ')');
|
|
141
144
|
yield eat(m`<__Alternatives />`);
|
|
145
|
+
yield endSpan();
|
|
142
146
|
yield eat(m`closeToken*: <* ')' />`);
|
|
143
147
|
}
|
|
144
148
|
|