Comparing version 0.15.2 to 0.15.3
@@ -300,3 +300,8 @@ import { Parser, NodeSet, NodeType, DefaultBufferLength, NodeProp, Tree } from '@lezer/common'; | ||
return false; | ||
if (!this.p.parser.validAction(this.state, reduce)) { | ||
let { parser } = this.p; | ||
if (!parser.validAction(this.state, reduce)) { | ||
let depth = reduce >> 19 /* ReduceDepthShift */, term = reduce & 65535 /* ValueMask */; | ||
let target = this.stack.length - depth * 3; | ||
if (target < 0 || parser.getGoto(this.stack[target], term, true) < 0) | ||
return false; | ||
this.storeNode(0 /* Err */, this.reducePos, this.reducePos, 4, true); | ||
@@ -303,0 +308,0 @@ this.score -= 100 /* Reduce */; |
{ | ||
"name": "@lezer/lr", | ||
"version": "0.15.2", | ||
"version": "0.15.3", | ||
"description": "Incremental parser", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
# @lezer/lr | ||
[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/lezer/blob/master/CHANGELOG.md) ] | ||
[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/lr/blob/master/CHANGELOG.md) ] | ||
@@ -5,0 +5,0 @@ Lezer ("reader" in Dutch, pronounced pretty much as laser) is an |
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
134475
3342