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

Feature request: line/column numbers #1

Open
AlexanderZeilmann opened this issue Jan 5, 2015 · 0 comments
Open

Feature request: line/column numbers #1

AlexanderZeilmann opened this issue Jan 5, 2015 · 0 comments

Comments

@AlexanderZeilmann
Copy link

Would it be possible to add the line/column numbers of the starting and ending points of the tokens to the AST? Something like

{
  "type": "Identifier",
  "value": "color",
  "position": {
    "start": {
      "line": 2,
      "col": 14
    },
    "end": {
      "line": 2,
      "col": 18
    }
  }
}

Btw, this is one of the best css parsers, I found so far. Keep up the good work :-)

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

No branches or pull requests

1 participant