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

Nested comments #2

Open
tomaz1502 opened this issue Feb 15, 2024 · 0 comments
Open

Nested comments #2

tomaz1502 opened this issue Feb 15, 2024 · 0 comments

Comments

@tomaz1502
Copy link
Owner

tomaz1502 commented Feb 15, 2024

We currently do not support nested comments. Since javascript does not provide recursive regex, there are two options:

  • Set a maximum nested level that we want to support and add rules to implement that.
  • Change the implementation to use defineMode instead of defineSimpleMode, so we can write the tokenizer from scratch and create a logic for an arbitrary level of nested comments.
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