-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
feat(theme-common): code block MagicComments support for Lua/Haskell -- and WebAssembly ;; #8870
feat(theme-common): code block MagicComments support for Lua/Haskell -- and WebAssembly ;; #8870
Conversation
default: | ||
// All comment types | ||
return getCommentPattern( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove the lua
pattern by default. There are too many false-positives
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. I have updated the PR
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site settings. |
⚡️ Lighthouse report for the deploy preview of this PR
|
66eec0c
to
24cde7d
Compare
24cde7d
to
f878bc0
Compare
Thanks for your PR How can I review it? Can you provide me a test link on the preview? I suggest creating 3 new code blocks (lua,haskell,wasm) on |
51493fe
to
62358fc
Compare
@slorber, I have included the dogfooding tests, as well as added support for SQL, as its single-line comment syntax is similar to that of Lua and Haskell. https://deploy-preview-8870--docusaurus-2.netlify.app/tests/pages/code-block-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM 👍
Add support for Lua, haskell, SQL and wasm comment style for MagicComments. Related #8859
Pre-flight checklist
Motivation
Test Plan
Test links
Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
https://deploy-preview-8870--docusaurus-2.netlify.app/tests/pages/code-block-tests
Related issues/PRs
#8859