Skip to content

MATLAB parser cleanup & fix for parsing 1./x#1673

Merged
Anteru merged 2 commits intopygments:masterfrom
anntzer:matlab
Feb 6, 2021
Merged

MATLAB parser cleanup & fix for parsing 1./x#1673
Anteru merged 2 commits intopygments:masterfrom
anntzer:matlab

Conversation

@anntzer
Copy link
Copy Markdown
Contributor

@anntzer anntzer commented Jan 10, 2021

1st commit: Clarify recognition of "command form" by MATLAB parser.

Expand a bit the explanation; remove an unnecessary non-capturing group,
replace \s+ by \s at the end (we just need to check for the presence of
a space).

2nd commit: MATLAB: Correctly parse 1./x as (1)(./)(x).

@Anteru
Copy link
Copy Markdown
Collaborator

Anteru commented Feb 6, 2021

There have been quite a bunch of changes in the Matlab lexer. Could you please take a look and rebase to the latest version?

Expand a bit the explanation; remove an unnecessary non-capturing group,
replace \s+ by \s at the end (we just need to check for the presence of
a space).
@anntzer
Copy link
Copy Markdown
Contributor Author

anntzer commented Feb 6, 2021

rebased

@Anteru Anteru added this to the 2.8 milestone Feb 6, 2021
@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Feb 6, 2021
@Anteru
Copy link
Copy Markdown
Collaborator

Anteru commented Feb 6, 2021

Perfect, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants