Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adding "strict" causes locations to be off by the number of newlines after the "strict" #38

Closed
rikarends opened this Issue · 1 comment

2 participants

rikarends Marijn Haverbeke
rikarends

this seems to be caused by the logic that re-reads tokens after strict for pedantic tests.

function setStrict(strct) {
strict = strct;
// not re-reading the tokens for pedantic tests fixes this problem
// tokPos = lastEnd;
// skipSpace();
// readToken();
}

Marijn Haverbeke
Owner

Ah, this was broken by 0632b36 . Thanks for reporting. Fixed in attached patch.

Marijn Haverbeke marijnh closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.