Comparing version 0.13.4 to 0.13.5
@@ -0,1 +1,7 @@ | ||
## 0.13.5 (2021-05-14) | ||
### Bug fixes | ||
Fix a bug with overeager reuse of nodes on change boundaries. | ||
## 0.13.4 (2021-03-03) | ||
@@ -2,0 +8,0 @@ |
@@ -649,3 +649,3 @@ import { DefaultBufferLength, NodeSet, NodeType, stringInput, Tree, TreeBuffer } from 'lezer-tree'; | ||
for (;;) { | ||
if ((side < 0 ? cursor.to <= pos : cursor.from >= pos) && !cursor.type.isError) | ||
if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError) | ||
return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 5)) : Math.min(tree.length, Math.max(cursor.from + 1, pos + 5)); | ||
@@ -652,0 +652,0 @@ if (side < 0 ? cursor.prevSibling() : cursor.nextSibling()) |
{ | ||
"name": "lezer", | ||
"version": "0.13.4", | ||
"version": "0.13.5", | ||
"description": "Incremental parser", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
371274