Adding basic support for mathematica#2921
Conversation
Support for the wolfram language: - Followed "new language" tutorial - Added html examples and test files - Initial work highlights basic common expressions including numbers, system-level symbols, comments, operators, and strings
JS File Size Changes (gzipped)A total of 3 files have changed, with a combined diff of +585 B (+12.9%). Details
|
RunDevelopment
left a comment
There was a problem hiding this comment.
Thank you for making this language definition @msollami!
I left you a few comments with things to improve.
Also, I have a question about class-name and regex: Are these really class names/regexes? I don't know Mathematica but the patterns don't look like that to me.
Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
Moved string rule after comment to make highlighting faster.
Added the alias 'mathematica'
|
@RunDevelopment Thanks for your review & help, this looks good to me now. |
|
Sorry, it was quite late for me yesterday. I agree that it's pretty much gtg now. We can merge this after the lining errors and my last comment have been addressed. |
Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
Fixing linter errors
@RunDevelopment Ok, I added a new line at the end of file; changed tabs to spaces; and removed trailing whitespace, so the linter should be happy now. Is there a way I can trigger the action to run the linter? |
No, I have to trigger this manually every time. But all the CI does is run |
Good to know! Ok, it now passes the linter checks locally. |
|
Thank you for contributing @msollami! |
Support for the wolfram language: