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

Distinguish heading level tokens #20

Closed
ikatyang opened this issue Jan 19, 2021 · 1 comment · Fixed by #22
Closed

Distinguish heading level tokens #20

ikatyang opened this issue Jan 19, 2021 · 1 comment · Fixed by #22
Labels
enhancement New feature or request

Comments

@ikatyang
Copy link
Owner

The actual ATX heading markers (#, ##, etc.) are not queryable now, we should expose them as anonymous nodes so that it could be queried.

Similar to what I did in ikatyang/tree-sitter-yaml#9.

@ikatyang ikatyang added the enhancement New feature or request label Jan 19, 2021
@ikatyang
Copy link
Owner Author

After second thought, I'm going to distinguish heading level tokens instead of expose literal aliases since literal aliases can only be applied to ATX heading markers but not Setext heading underlines.

@ikatyang ikatyang changed the title Expose literal aliases Distinguish heading level tokens Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant