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

Unit tests for tokenization #62

Open
scripthunter7 opened this issue Jan 23, 2023 · 0 comments
Open

Unit tests for tokenization #62

scripthunter7 opened this issue Jan 23, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request Priority: P3 T: syntax highlighter The issue is related to the syntax highlighting

Comments

@scripthunter7
Copy link
Member

Based on the TMLanguage, it is possible to tokenize various inputs and then compare them with a token list. This makes test_rules.txt unnecessary in practice (good for a demo at most), since unit tests can be used to ensure that there is no breakage and that tokenization always happens as expected.

See: https://www.npmjs.com/package/vscode-textmate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority: P3 T: syntax highlighter The issue is related to the syntax highlighting
Projects
None yet
Development

No branches or pull requests

3 participants