Apply fixes for Magik language#4076
Conversation
✅ Deploy Preview for dev-prismjs-com ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
e210d7c to
9b3a575
Compare
9b3a575 to
fd5ce1a
Compare
504fc48 to
271dfbe
Compare
271dfbe to
152703a
Compare
9afe534 to
84d7ff9
Compare
|
@DmitrySharabin as requested, a new PR which contains all found fixes. |
DmitrySharabin
left a comment
There was a problem hiding this comment.
I left some comments/questions. Please, take a look. I'd also suggest adding a few tests to catch the mentioned cases if they make sense.
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
13f26a0 to
89b96c8
Compare
|
@DmitrySharabin I resolved your comments. Can you have a look if it looks good to you? |
Co-authored-by: Dmitry Sharabin <dmitrysharabin@gmail.com>
DmitrySharabin
left a comment
There was a problem hiding this comment.
LGTM!
Nit: Could you run Prettier, please, on the updated files? It seems like it should fix some formatting issues.
You mean on the test files? |
|
Yeah, I think it won't work on the test files. Let's just run Prettier on |
Which issues does it solve then? I ran it, but IMO the output was less readable than what we have now. |
One is that if anyone ever wants to change the file, save the changes, and Prettier kicks in automatically (as it should according to the recommended IDE setup), they should undo the changes made by Prettier or commit/submit unrelated changes. I should've asked you to do that in the first PR, but I somehow missed it. |
I'll run it then and put aside my own opinion. |
|
Merged! Thank you. |
|
@DmitrySharabin I backported the changes to a branch for v1 so we can use Magik already in several plugins, but with the current grammar, the lint breaks, while in v2 it doesn't. https://github.com/sebastiaanspeck/prism/actions/runs/24758384791 |
The root cause is the lookbehind assertion ( "parserOptions": {
"ecmaVersion": 2018
}to |
No description provided.