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

Update syntax highlighter to catch both types of comments #25

Merged

Conversation

timothymcmackin
Copy link
Contributor

@timothymcmackin timothymcmackin commented Feb 21, 2024

Archetype comments are formatted like c-like languages, so you can have single-line comments that start with // or multi-line comments within /* ... */. The Prism rule in this formatter catches only multiline comments. This PR adds single-line comments. I stole the code from the clike formatter here: https://github.com/PrismJS/prism/blob/master/components/prism-clike.js.

Without this change, the comments in #26 look like this:
Screenshot 2024-02-21 at 9 15 20 AM

@guillaumeduhamel guillaumeduhamel merged commit d2ee29f into completium:main Feb 27, 2024
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.

None yet

2 participants