Skip to content

Conversation

@donbarbos
Copy link
Contributor

@donbarbos donbarbos commented Jan 25, 2026

Actually, pyright uses node-jsonc-parser (see deps), jsonc spec. It seems writing a real context-free grammar parser is unnecessary here and more suitible way is using regex. This regex is suitable for almost all cases, except for those where a parser is really needed, such as 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

Successfully merging this pull request may close these issues.

1 participant