Skip to content
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

MATLAB allows keywords to be used as field names. #1282

Merged
merged 1 commit into from
Nov 27, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Nov 26, 2019

... so don't highlight them as keywords in that position.

Example MATLAB session showcasing this "feature":

>> x.for = 42

x =

struct with fields:

    for: 42

>> x

x =

struct with fields:

    for: 42

>> x.for

ans =

    42

... so don't highlight them as keywords in that position.

Example MATLAB session showcasing this "feature":

    >> x.for = 42

    x =

    struct with fields:

        for: 42

    >> x

    x =

    struct with fields:

        for: 42

    >> x.for

    ans =

        42
@birkenfeld birkenfeld merged commit afc4856 into pygments:master Nov 27, 2019
@anntzer anntzer deleted the matlab branch November 27, 2019 05:32
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.

None yet

2 participants