Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Feature request: line/column numbers #1

@AlexanderZeilmann

Description

@AlexanderZeilmann

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 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions