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
757/germanriano/mosel #1326
757/germanriano/mosel #1326
Conversation
…est file with incompatible license.
pygments/lexers/mosel.py
Outdated
'is_sos1', 'is_sos2', 'is_integer', 'is_binary', 'is_continuous', | ||
'is_free', 'is_semcont', 'is_semint', 'is_partint' | ||
)), Keyword.Type), | ||
(r'(\+|\-|\*|/|=|<=|>=|==|\||\^|<|>|<>|\.\.|\.|:=|:|::|in|mod|div)', Operator), |
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.
:
and ::
need to swap places to have ::
recognized.
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 for the hint. I just reordered the :
and ::
.
pygments/lexers/mosel.py
Outdated
'is_sos1', 'is_sos2', 'is_integer', 'is_binary', 'is_continuous', | ||
'is_free', 'is_semcont', 'is_semint', 'is_partint' | ||
)), Keyword.Type), | ||
(r'(\+|\-|\*|/|=|<=|>=|==|\||\^|<|>|<>|\.\.|\.|:=|:|::|in|mod|div)', Operator), | ||
(r'[()\[\]{},;:]+', Punctuation), |
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.
Is :
still needed here as punctuation?
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 are right. It's not needed. I just removed it.
…ant ':', remove '=='.
Thanks! |
I deleted the test file that had an incompatible license and created a new test file. Moreover, I also added several keywords and types.