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

Add support for AST token matching #3

Open
jrfeenst opened this issue Aug 19, 2013 · 0 comments
Open

Add support for AST token matching #3

jrfeenst opened this issue Aug 19, 2013 · 0 comments

Comments

@jrfeenst
Copy link
Contributor

Adding token matching is useful for a few cases where things like whitespace are important but not represented in the AST.

Possible pseudo selectors:

  • :token(type, value) - token inside the node
  • :nth-token(n, type, value) - token inside or around the associated node (n tokens)
  • :nth-token-before(n, type, value) - token before the associated node (n tokens)
  • :nth-token-after(n, type, value) - token after the associated node (n tokens)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant