@digipair/skill-debug 0.136.0 → 0.136.3
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/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { promises } from 'fs';
|
|
2
2
|
|
|
3
|
-
function _mergeNamespaces(n, m) {
|
|
3
|
+
function _mergeNamespaces$1(n, m) {
|
|
4
4
|
m.forEach(function(e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
6
6
|
if (k !== 'default' && !(k in n)) {
|
|
@@ -20,7 +20,7 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
20
20
|
function getDefaultExportFromCjs(x) {
|
|
21
21
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
22
22
|
}
|
|
23
|
-
var handlebars_min
|
|
23
|
+
var handlebars_min = {
|
|
24
24
|
exports: {}
|
|
25
25
|
};
|
|
26
26
|
/**!
|
|
@@ -48,7 +48,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
48
48
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
49
49
|
THE SOFTWARE.
|
|
50
50
|
|
|
51
|
-
*/ handlebars_min
|
|
51
|
+
*/ handlebars_min.exports;
|
|
52
52
|
(function(module1, exports1) {
|
|
53
53
|
function _instanceof(left, right) {
|
|
54
54
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -8129,12 +8129,12 @@ THE SOFTWARE.
|
|
|
8129
8129
|
}
|
|
8130
8130
|
]);
|
|
8131
8131
|
});
|
|
8132
|
-
})(handlebars_min
|
|
8133
|
-
var handlebars_minExports = handlebars_min
|
|
8134
|
-
var
|
|
8135
|
-
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces({
|
|
8132
|
+
})(handlebars_min, handlebars_min.exports);
|
|
8133
|
+
var handlebars_minExports = handlebars_min.exports;
|
|
8134
|
+
var handlebars_min_default = /*@__PURE__*/ getDefaultExportFromCjs(handlebars_minExports);
|
|
8135
|
+
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces$1({
|
|
8136
8136
|
__proto__: null,
|
|
8137
|
-
default:
|
|
8137
|
+
default: handlebars_min_default
|
|
8138
8138
|
}, [
|
|
8139
8139
|
handlebars_minExports
|
|
8140
8140
|
]);
|
|
@@ -17296,6 +17296,7 @@ class represent prop names.
|
|
|
17296
17296
|
this.deserialize = config.deserialize || function() {
|
|
17297
17297
|
throw new Error("This node type doesn't define a deserialize function");
|
|
17298
17298
|
};
|
|
17299
|
+
this.combine = config.combine || null;
|
|
17299
17300
|
}
|
|
17300
17301
|
_create_class$u(NodeProp, [
|
|
17301
17302
|
{
|
|
@@ -17408,10 +17409,16 @@ represented by another tree.
|
|
|
17408
17409
|
*/ overlay, /**
|
|
17409
17410
|
The parser used to create this subtree.
|
|
17410
17411
|
*/ parser) {
|
|
17412
|
+
var /**
|
|
17413
|
+
[Indicates](#common.IterMode.EnterBracketed) that the nested
|
|
17414
|
+
content is delineated with some kind
|
|
17415
|
+
of bracket token.
|
|
17416
|
+
*/ bracketed = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
17411
17417
|
_class_call_check$z(this, MountedTree);
|
|
17412
17418
|
this.tree = tree;
|
|
17413
17419
|
this.overlay = overlay;
|
|
17414
17420
|
this.parser = parser;
|
|
17421
|
+
this.bracketed = bracketed;
|
|
17415
17422
|
}
|
|
17416
17423
|
_create_class$u(MountedTree, null, [
|
|
17417
17424
|
{
|
|
@@ -17627,7 +17634,9 @@ types in it, so that the ids fit into 16-bit typed array slots.
|
|
|
17627
17634
|
var add = source(type);
|
|
17628
17635
|
if (add) {
|
|
17629
17636
|
if (!newProps) newProps = Object.assign({}, type.props);
|
|
17630
|
-
|
|
17637
|
+
var value = add[1], prop = add[0];
|
|
17638
|
+
if (prop.combine && prop.id in newProps) value = prop.combine(newProps[prop.id], value);
|
|
17639
|
+
newProps[prop.id] = value;
|
|
17631
17640
|
}
|
|
17632
17641
|
}
|
|
17633
17642
|
} catch (err) {
|
|
@@ -17693,6 +17702,12 @@ operator to enable multiple ones.
|
|
|
17693
17702
|
library to not enter mounted overlays if one covers the given
|
|
17694
17703
|
position.
|
|
17695
17704
|
*/ IterMode[IterMode["IgnoreOverlays"] = 8] = "IgnoreOverlays";
|
|
17705
|
+
/**
|
|
17706
|
+
When set, positions on the boundary of a mounted overlay tree
|
|
17707
|
+
that has its [`bracketed`](#common.NestedParse.bracketed) flag
|
|
17708
|
+
set will enter that tree regardless of side. Only supported in
|
|
17709
|
+
[`enter`](#common.SyntaxNode.enter), not in cursors.
|
|
17710
|
+
*/ IterMode[IterMode["EnterBracketed"] = 16] = "EnterBracketed";
|
|
17696
17711
|
})(IterMode || (IterMode = {}));
|
|
17697
17712
|
/**
|
|
17698
17713
|
A piece of syntax tree. There are two ways to approach these
|
|
@@ -18251,17 +18266,17 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18251
18266
|
var mode = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
|
|
18252
18267
|
for(var parent = this;;){
|
|
18253
18268
|
for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
|
|
18254
|
-
var next = children[i], start = positions[i] + parent.from;
|
|
18255
|
-
if (!checkSide(side, pos, start, start + next.length)) continue;
|
|
18269
|
+
var next = children[i], start = positions[i] + parent.from, mounted = void 0;
|
|
18270
|
+
if (!(mode & IterMode.EnterBracketed && _instanceof$i(next, Tree) && (mounted = MountedTree.get(next)) && !mounted.overlay && mounted.bracketed && pos >= start && pos <= start + next.length) && !checkSide(side, pos, start, start + next.length)) continue;
|
|
18256
18271
|
if (_instanceof$i(next, TreeBuffer)) {
|
|
18257
18272
|
if (mode & IterMode.ExcludeBuffers) continue;
|
|
18258
18273
|
var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
|
|
18259
18274
|
if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
|
|
18260
18275
|
} else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
|
|
18261
|
-
var
|
|
18262
|
-
if (!(mode & IterMode.IgnoreMounts) && (
|
|
18276
|
+
var mounted1 = void 0;
|
|
18277
|
+
if (!(mode & IterMode.IgnoreMounts) && (mounted1 = MountedTree.get(next)) && !mounted1.overlay) return new TreeNode(mounted1.tree, start, i, parent);
|
|
18263
18278
|
var inner = new TreeNode(next, start, i, parent);
|
|
18264
|
-
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
|
|
18279
|
+
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side, mode);
|
|
18265
18280
|
}
|
|
18266
18281
|
}
|
|
18267
18282
|
if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous) return null;
|
|
@@ -18296,18 +18311,24 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18296
18311
|
return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */ );
|
|
18297
18312
|
}
|
|
18298
18313
|
},
|
|
18314
|
+
{
|
|
18315
|
+
key: "prop",
|
|
18316
|
+
value: function prop(prop) {
|
|
18317
|
+
return this._tree.prop(prop);
|
|
18318
|
+
}
|
|
18319
|
+
},
|
|
18299
18320
|
{
|
|
18300
18321
|
key: "enter",
|
|
18301
18322
|
value: function enter(pos, side) {
|
|
18302
18323
|
var mode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
18303
18324
|
var mounted;
|
|
18304
18325
|
if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
|
|
18305
|
-
var rPos = pos - this.from;
|
|
18326
|
+
var rPos = pos - this.from, enterBracketed = mode & IterMode.EnterBracketed && mounted.bracketed;
|
|
18306
18327
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
18307
18328
|
try {
|
|
18308
18329
|
for(var _iterator = mounted.overlay[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
18309
18330
|
var _step_value = _step.value, from = _step_value.from, to = _step_value.to;
|
|
18310
|
-
if ((side > 0 ? from <= rPos : from < rPos) && (side < 0 ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
|
|
18331
|
+
if ((side > 0 || enterBracketed ? from <= rPos : from < rPos) && (side < 0 || enterBracketed ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
|
|
18311
18332
|
}
|
|
18312
18333
|
} catch (err) {
|
|
18313
18334
|
_didIteratorError = true;
|
|
@@ -18471,6 +18492,12 @@ var BufferNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18471
18492
|
return this.child(-1, pos, -2 /* Side.Before */ );
|
|
18472
18493
|
}
|
|
18473
18494
|
},
|
|
18495
|
+
{
|
|
18496
|
+
key: "prop",
|
|
18497
|
+
value: function prop(prop) {
|
|
18498
|
+
return this.type.prop(prop);
|
|
18499
|
+
}
|
|
18500
|
+
},
|
|
18474
18501
|
{
|
|
18475
18502
|
key: "enter",
|
|
18476
18503
|
value: function enter(pos, side) {
|
|
@@ -18601,11 +18628,8 @@ A tree cursor object focuses on a given node in a syntax tree, and
|
|
|
18601
18628
|
allows you to move to adjacent nodes.
|
|
18602
18629
|
*/ var TreeCursor = /*#__PURE__*/ function() {
|
|
18603
18630
|
function TreeCursor(node) {
|
|
18604
|
-
var
|
|
18605
|
-
@internal
|
|
18606
|
-
*/ mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
18631
|
+
var mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
18607
18632
|
_class_call_check$z(this, TreeCursor);
|
|
18608
|
-
this.mode = mode;
|
|
18609
18633
|
/**
|
|
18610
18634
|
@internal
|
|
18611
18635
|
*/ this.buffer = null;
|
|
@@ -18614,6 +18638,7 @@ allows you to move to adjacent nodes.
|
|
|
18614
18638
|
@internal
|
|
18615
18639
|
*/ this.index = 0;
|
|
18616
18640
|
this.bufferNode = null;
|
|
18641
|
+
this.mode = mode & ~IterMode.EnterBracketed;
|
|
18617
18642
|
if (_instanceof$i(node, TreeNode)) {
|
|
18618
18643
|
this.yieldNode(node);
|
|
18619
18644
|
} else {
|
|
@@ -18957,7 +18982,7 @@ function buildTree(data) {
|
|
|
18957
18982
|
function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
|
|
18958
18983
|
var id = cursor.id, start = cursor.start, end = cursor.end, size = cursor.size;
|
|
18959
18984
|
var lookAheadAtStart = lookAhead, contextAtStart = contextHash;
|
|
18960
|
-
|
|
18985
|
+
if (size < 0) {
|
|
18961
18986
|
cursor.next();
|
|
18962
18987
|
if (size == -1 /* SpecialRecord.Reuse */ ) {
|
|
18963
18988
|
var node = reused[id];
|
|
@@ -19124,7 +19149,7 @@ function buildTree(data) {
|
|
|
19124
19149
|
fork.next();
|
|
19125
19150
|
while(fork.pos > startPos){
|
|
19126
19151
|
if (fork.size < 0) {
|
|
19127
|
-
if (fork.size == -3 /* SpecialRecord.ContextChange */ ) localSkipped += 4;
|
|
19152
|
+
if (fork.size == -3 /* SpecialRecord.ContextChange */ || fork.size == -4 /* SpecialRecord.LookAhead */ ) localSkipped += 4;
|
|
19128
19153
|
else break scan;
|
|
19129
19154
|
} else if (fork.id >= minRepeatType) {
|
|
19130
19155
|
localSkipped += 4;
|
|
@@ -19559,11 +19584,11 @@ about the parse state.
|
|
|
19559
19584
|
var _a;
|
|
19560
19585
|
var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
|
|
19561
19586
|
var parser = this.p.parser;
|
|
19562
|
-
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ ;
|
|
19563
|
-
if (lookaheadRecord) this.setLookAhead(this.pos);
|
|
19587
|
+
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ && this.setLookAhead(this.pos);
|
|
19564
19588
|
var dPrec = parser.dynamicPrecedence(type);
|
|
19565
19589
|
if (dPrec) this.score += dPrec;
|
|
19566
19590
|
if (depth == 0) {
|
|
19591
|
+
if (type < parser.minRepeatTerm && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19567
19592
|
this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
|
|
19568
19593
|
// Zero-depth reductions are a special case—they add stuff to
|
|
19569
19594
|
// the stack without popping anything off.
|
|
@@ -19577,7 +19602,9 @@ about the parse state.
|
|
|
19577
19602
|
// expression and the state that we'll be staying in, which should
|
|
19578
19603
|
// be moved to `this.state`).
|
|
19579
19604
|
var base = this.stack.length - (depth - 1) * 3 - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
|
|
19580
|
-
var start = base ? this.stack[base - 2] : this.p.ranges[0].from
|
|
19605
|
+
var start = base ? this.stack[base - 2] : this.p.ranges[0].from;
|
|
19606
|
+
if (type < parser.minRepeatTerm && start == this.reducePos && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19607
|
+
var size = this.reducePos - start;
|
|
19581
19608
|
// This is a kludge to try and detect overly deep left-associative
|
|
19582
19609
|
// trees, which will not increase the parse stack depth and thus
|
|
19583
19610
|
// won't be caught by the regular stack-depth limit check.
|
|
@@ -19616,15 +19643,11 @@ about the parse state.
|
|
|
19616
19643
|
var size = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 4, mustSink = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
19617
19644
|
if (term == 0 /* Term.Err */ && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
|
|
19618
19645
|
// Try to omit/merge adjacent error nodes
|
|
19619
|
-
var
|
|
19620
|
-
if (top == 0 &&
|
|
19621
|
-
top = cur.bufferBase - cur.parent.bufferBase;
|
|
19622
|
-
cur = cur.parent;
|
|
19623
|
-
}
|
|
19624
|
-
if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {
|
|
19646
|
+
var top = this.buffer.length;
|
|
19647
|
+
if (top > 0 && this.buffer[top - 4] == 0 /* Term.Err */ && this.buffer[top - 1] > -1) {
|
|
19625
19648
|
if (start == end) return;
|
|
19626
|
-
if (
|
|
19627
|
-
|
|
19649
|
+
if (this.buffer[top - 2] >= start) {
|
|
19650
|
+
this.buffer[top - 2] = end;
|
|
19628
19651
|
return;
|
|
19629
19652
|
}
|
|
19630
19653
|
}
|
|
@@ -19633,7 +19656,7 @@ about the parse state.
|
|
|
19633
19656
|
this.buffer.push(term, start, end, size);
|
|
19634
19657
|
} else {
|
|
19635
19658
|
var index = this.buffer.length;
|
|
19636
|
-
if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */ ) {
|
|
19659
|
+
if (index > 0 && (this.buffer[index - 4] != 0 /* Term.Err */ || this.buffer[index - 1] < 0)) {
|
|
19637
19660
|
var mustMove = false;
|
|
19638
19661
|
for(var scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4){
|
|
19639
19662
|
if (this.buffer[scan - 1] >= 0) {
|
|
@@ -19668,11 +19691,11 @@ about the parse state.
|
|
|
19668
19691
|
this.pushState(action & 65535 /* Action.ValueMask */ , this.pos);
|
|
19669
19692
|
} else if ((action & 262144 /* Action.StayFlag */ ) == 0) {
|
|
19670
19693
|
var nextState = action, parser = this.p.parser;
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
this.pushState(nextState, start);
|
|
19694
|
+
this.pos = end;
|
|
19695
|
+
var skipped = parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ );
|
|
19696
|
+
// Skipped or zero-length non-tree tokens don't move reducePos
|
|
19697
|
+
if (!skipped && (end > start || type <= parser.maxNode)) this.reducePos = end;
|
|
19698
|
+
this.pushState(nextState, skipped ? start : Math.min(start, this.reducePos));
|
|
19676
19699
|
this.shiftContext(type, start);
|
|
19677
19700
|
if (type <= parser.maxNode) this.buffer.push(type, start, end, 4);
|
|
19678
19701
|
} else {
|
|
@@ -19720,6 +19743,9 @@ about the parse state.
|
|
|
19720
19743
|
value: function split() {
|
|
19721
19744
|
var parent = this;
|
|
19722
19745
|
var off = parent.buffer.length;
|
|
19746
|
+
// Leave off top error node, if there, because that might be
|
|
19747
|
+
// merged with other nodes.
|
|
19748
|
+
if (off && parent.buffer[off - 4] == 0 /* Term.Err */ ) off -= 4;
|
|
19723
19749
|
// Because the top of the buffer (after this.pos) may be mutated
|
|
19724
19750
|
// to reorder reductions and skipped tokens, and shared buffers
|
|
19725
19751
|
// should be immutable, this copies any outstanding skipped tokens
|
|
@@ -19963,10 +19989,10 @@ about the parse state.
|
|
|
19963
19989
|
@internal
|
|
19964
19990
|
*/ key: "setLookAhead",
|
|
19965
19991
|
value: function setLookAhead(lookAhead) {
|
|
19966
|
-
if (lookAhead
|
|
19967
|
-
|
|
19968
|
-
|
|
19969
|
-
|
|
19992
|
+
if (lookAhead <= this.lookAhead) return false;
|
|
19993
|
+
this.emitLookAhead();
|
|
19994
|
+
this.lookAhead = lookAhead;
|
|
19995
|
+
return true;
|
|
19970
19996
|
}
|
|
19971
19997
|
},
|
|
19972
19998
|
{
|
|
@@ -20859,7 +20885,12 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20859
20885
|
}
|
|
20860
20886
|
}
|
|
20861
20887
|
}
|
|
20862
|
-
if (newStacks.length > 12 /* Rec.MaxStackCount */ )
|
|
20888
|
+
if (newStacks.length > 12 /* Rec.MaxStackCount */ ) {
|
|
20889
|
+
newStacks.sort(function(a, b) {
|
|
20890
|
+
return b.score - a.score;
|
|
20891
|
+
});
|
|
20892
|
+
newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
|
|
20893
|
+
}
|
|
20863
20894
|
}
|
|
20864
20895
|
this.minStackPos = newStacks[0].pos;
|
|
20865
20896
|
for(var i2 = 1; i2 < newStacks.length; i2++)if (newStacks[i2].pos < this.minStackPos) this.minStackPos = newStacks[i2].pos;
|
|
@@ -20954,7 +20985,7 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20954
20985
|
if (done) continue;
|
|
20955
20986
|
}
|
|
20956
20987
|
var force = stack.split(), forceBase = base;
|
|
20957
|
-
for(var j = 0;
|
|
20988
|
+
for(var j = 0; j < 10 /* Rec.ForceReduceLimit */ && force.forceReduce(); j++){
|
|
20958
20989
|
if (verbose) console.log(forceBase + this.stackID(force) + " (via force-reduce)");
|
|
20959
20990
|
var done1 = this.advanceFully(force, newStacks);
|
|
20960
20991
|
if (done1) break;
|
|
@@ -20989,8 +21020,8 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20989
21020
|
stack.recoverByDelete(token, tokenEnd);
|
|
20990
21021
|
if (verbose) console.log(base + this.stackID(stack) + " (via recover-delete ".concat(this.parser.getName(token), ")"));
|
|
20991
21022
|
pushStackDedup(stack, newStacks);
|
|
20992
|
-
} else if (!finished || finished.score <
|
|
20993
|
-
finished =
|
|
21023
|
+
} else if (!finished || finished.score < force.score) {
|
|
21024
|
+
finished = force;
|
|
20994
21025
|
}
|
|
20995
21026
|
}
|
|
20996
21027
|
return finished;
|
|
@@ -21839,7 +21870,7 @@ must be quoted as JSON strings.
|
|
|
21839
21870
|
For example:
|
|
21840
21871
|
|
|
21841
21872
|
```javascript
|
|
21842
|
-
parser.
|
|
21873
|
+
parser.configure({props: [
|
|
21843
21874
|
styleTags({
|
|
21844
21875
|
// Style Number and BigNumber nodes
|
|
21845
21876
|
"Number BigNumber": tags.number,
|
|
@@ -21854,7 +21885,7 @@ parser.withProps(
|
|
|
21854
21885
|
// Style the node named "/" as punctuation
|
|
21855
21886
|
'"/"': tags.punctuation
|
|
21856
21887
|
})
|
|
21857
|
-
)
|
|
21888
|
+
]})
|
|
21858
21889
|
```
|
|
21859
21890
|
*/ function styleTags(spec) {
|
|
21860
21891
|
var byName = Object.create(null);
|
|
@@ -21910,7 +21941,26 @@ parser.withProps(
|
|
|
21910
21941
|
}
|
|
21911
21942
|
return ruleNodeProp.add(byName);
|
|
21912
21943
|
}
|
|
21913
|
-
var ruleNodeProp = new NodeProp(
|
|
21944
|
+
var ruleNodeProp = new NodeProp({
|
|
21945
|
+
combine: function combine(a, b) {
|
|
21946
|
+
var cur, root, take;
|
|
21947
|
+
while(a || b){
|
|
21948
|
+
if (!a || b && a.depth >= b.depth) {
|
|
21949
|
+
take = b;
|
|
21950
|
+
b = b.next;
|
|
21951
|
+
} else {
|
|
21952
|
+
take = a;
|
|
21953
|
+
a = a.next;
|
|
21954
|
+
}
|
|
21955
|
+
if (cur && cur.mode == take.mode && !take.context && !cur.context) continue;
|
|
21956
|
+
var copy = new Rule$1(take.tags, take.mode, take.context);
|
|
21957
|
+
if (cur) cur.next = copy;
|
|
21958
|
+
else root = copy;
|
|
21959
|
+
cur = copy;
|
|
21960
|
+
}
|
|
21961
|
+
return root;
|
|
21962
|
+
}
|
|
21963
|
+
});
|
|
21914
21964
|
var Rule$1 = /*#__PURE__*/ function() {
|
|
21915
21965
|
function Rule(tags, mode, context, next) {
|
|
21916
21966
|
_class_call_check$x(this, Rule);
|
|
@@ -22835,14 +22885,14 @@ function indent(str, spaces) {
|
|
|
22835
22885
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22836
22886
|
// match is required
|
|
22837
22887
|
if (!match) {
|
|
22838
|
-
return
|
|
22888
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
22839
22889
|
v: nextMatch1
|
|
22840
22890
|
};
|
|
22841
22891
|
}
|
|
22842
22892
|
var token = match.token, offset = match.offset;
|
|
22843
22893
|
i1 += offset;
|
|
22844
22894
|
if (token === ' ') {
|
|
22845
|
-
return
|
|
22895
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
22846
22896
|
}
|
|
22847
22897
|
tokens1 = _to_consumable_array$4(tokens1).concat([
|
|
22848
22898
|
token
|
|
@@ -22861,7 +22911,7 @@ function indent(str, spaces) {
|
|
|
22861
22911
|
if (contextKeys.some(function(el) {
|
|
22862
22912
|
return el.startsWith(name);
|
|
22863
22913
|
})) {
|
|
22864
|
-
return
|
|
22914
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
22865
22915
|
}
|
|
22866
22916
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22867
22917
|
return el === name;
|
|
@@ -22880,9 +22930,9 @@ function indent(str, spaces) {
|
|
|
22880
22930
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22881
22931
|
return el.startsWith(name);
|
|
22882
22932
|
})) {
|
|
22883
|
-
return
|
|
22933
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
22884
22934
|
}
|
|
22885
|
-
return
|
|
22935
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
22886
22936
|
v: nextMatch1
|
|
22887
22937
|
};
|
|
22888
22938
|
};
|
|
@@ -42607,7 +42657,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
42607
42657
|
var parserInstance$1 = new CelParser();
|
|
42608
42658
|
parserInstance$1.getBaseCstVisitorConstructor();
|
|
42609
42659
|
new CelParser();
|
|
42610
|
-
const Handlebars =
|
|
42660
|
+
const Handlebars = handlebars_min_default || HandlebarsNamespace;
|
|
42611
42661
|
Handlebars.registerHelper('JSONstringify', function(value) {
|
|
42612
42662
|
return JSON.stringify(value);
|
|
42613
42663
|
});
|
package/package.json
CHANGED
package/dist/src/index.d.ts
DELETED
package/dist/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skill-debug.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAmBhD,eAAO,MAAM,GAAG,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACpB,CAAC"}
|