Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position for the tokens #21

Open
tunnckoCore opened this issue Aug 16, 2016 · 1 comment · May be fixed by #23
Open

Position for the tokens #21

tunnckoCore opened this issue Aug 16, 2016 · 1 comment · May be fixed by #23

Comments

@tunnckoCore
Copy link

tunnckoCore commented Aug 16, 2016

Hey, that's great lib, thanks! Seems i can use it but need positions of the tokens. And in addition, can we allow foo-bar keys without quotes? or through some option.

Like that

{ type: 'key',
  value: 'foobar ',
  position:  {
     start: { line: 26, column: 78, offset: 811 },
     end: { line: 27, column: 5, offset: 816 } } }

Offset and line are there, just need to be added to hash, but for the columns need more maybe... Reviewing now.

@tunnckoCore
Copy link
Author

Huh, got it working, haha :) Will PR after cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant