Comparing version 0.12.5 to 0.12.6
@@ -390,2 +390,3 @@ ;(function (clarinet) { | ||
var i = 0, c = chunk.charCodeAt(0), p = parser.p; | ||
var lockIncrements = false; | ||
if (clarinet.DEBUG) console.log('write -> [' + chunk + ']'); | ||
@@ -405,7 +406,11 @@ while (c) { | ||
if (clarinet.DEBUG) console.log(i,c,clarinet.STATE[parser.state]); | ||
parser.position ++; | ||
if (c === Char.lineFeed) { | ||
parser.line ++; | ||
parser.column = 0; | ||
} else parser.column ++; | ||
if (!lockIncrements) { | ||
parser.position ++; | ||
if (c === Char.lineFeed) { | ||
parser.line ++; | ||
parser.column = 0; | ||
} else parser.column ++; | ||
} else { | ||
lockIncrements = false; | ||
} | ||
switch (parser.state) { | ||
@@ -671,2 +676,3 @@ | ||
i--; // go back one | ||
lockIncrements = true; // do not apply increments for a single cycle | ||
parser.state = parser.stack.pop() || S.VALUE; | ||
@@ -673,0 +679,0 @@ } |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "0.12.5", | ||
"version": "0.12.6", | ||
"main": "./clarinet.js", | ||
@@ -42,3 +42,3 @@ "homepage": "https://github.com/dscape/clarinet", | ||
"scripts": { | ||
"test": "mocha -r should -t 10000 -s 2000 test/parser.spec.js test/clarinet.js test/npm.js test/utf8-chunks.js test/position.js", | ||
"test": "mocha -r should -t 10000 -s 2000 test/parser.spec.js test/clarinet.js test/npm.js test/utf8-chunks.js test/positions.js", | ||
"bench": "cd benchmark && npm test", | ||
@@ -45,0 +45,0 @@ "prebench": "cd benchmark && test -e node_modules || npm i --ignore-scripts" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34848
641
0