Comparing version 0.16.1 to 0.16.2
@@ -129,3 +129,5 @@ import { Parser, NodeSet, NodeType, DefaultBufferLength, NodeProp, Tree, IterMode } from '@lezer/common'; | ||
storeNode(term, start, end, size = 4, isReduce = false) { | ||
if (term == 0 /* Err */) { // Try to omit/merge adjacent error nodes | ||
if (term == 0 /* Err */ && | ||
(!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) { | ||
// Try to omit/merge adjacent error nodes | ||
let cur = this, top = this.buffer.length; | ||
@@ -132,0 +134,0 @@ if (top == 0 && cur.parent) { |
{ | ||
"name": "@lezer/lr", | ||
"version": "0.16.1", | ||
"version": "0.16.2", | ||
"description": "Incremental parser", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137325
3399