Navigation Menu

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

bqn: Add bqn language support. #3515

Merged
merged 10 commits into from Aug 5, 2022
Merged

Conversation

yewscion
Copy link
Contributor

@yewscion yewscion commented Aug 5, 2022

Related to: #3514

This patch adds support for the BQN language to PrismJS, following the instructions in the documentation. Let me know if anything needs fixed before merge.

@github-actions
Copy link

github-actions bot commented Aug 5, 2022

JS File Size Changes (gzipped)

A total of 2 files have changed, with a combined diff of +720 B (+26.7%).

file master pull size diff % diff
components/prism-bqn.min.js 0 Bytes 713 B +713 B +100.0%
plugins/show-language/prism-show-language.min.js 2.7 KB 2.71 KB +7 B +0.3%

Generated by 🚫 dangerJS against 4aae2c6

Copy link
Member

@RunDevelopment RunDevelopment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR @yewscion!

The code itself looks good, but please fix the formatting. We use ESLint to do that, so either install an ESLint plugin/extension for your editor or run npm run lint:fix (this command won't work until the Unicode regex is fixed, see my last comment below).

components/prism-bqn.js Outdated Show resolved Hide resolved
components/prism-bqn.js Show resolved Hide resolved
components/prism-bqn.js Outdated Show resolved Hide resolved
@RunDevelopment
Copy link
Member

Coverage tests fail because the punctuation token is untested. Please add a test for it.

+ Added Punctuation Test.
+ Added token test for 𝕣, _𝕣, and _𝕣_ 'special-name' tokens.
~ 'comment' token is now greedy.
~ 'shebang' token is now greedy and doesn't use '\s'.
~ Fixed Punctuation Regexp.
~ Formatted using `npm run lint:fix`.
- Removed '/u' modifier flag from all patterns aside from 'special-name'.
components/prism-bqn.js Outdated Show resolved Hide resolved
components/prism-bqn.js Outdated Show resolved Hide resolved
components/prism-bqn.js Outdated Show resolved Hide resolved
components/prism-bqn.js Outdated Show resolved Hide resolved
@RunDevelopment RunDevelopment merged commit 859f99a into PrismJS:master Aug 5, 2022
@RunDevelopment
Copy link
Member

Thank you for contributing @yewscion!

@yewscion
Copy link
Contributor Author

yewscion commented Aug 5, 2022

Thank You @RunDevelopment! Sorry there were so many issues to fix; I will try to be more attentive in the future.

@RunDevelopment RunDevelopment mentioned this pull request Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants