@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.
Files changed (2) hide show
  1. package/lib/grammar.js +4 -0
  2. 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bablr/language-en-regex-vm-pattern",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "A BABLR language for nonbacktracking JS-style regexes",
5
5
  "engines": {
6
6
  "node": ">=12.0.0"