Make onToken only fire for actual final tokens

Issue #189
This commit is contained in:
Marijn Haverbeke
2015-01-04 22:13:18 +01:00
parent 431a44bc74
commit e271168cf6
2 changed files with 5 additions and 7 deletions

View File

@@ -28757,6 +28757,7 @@ var tokTypes = acorn.tokTypes;
test('var x = (1 + 2)', {}, {
locations: true,
loose: false,
onToken: [
{
type: tokTypes._var,