Skip to content

Matlab OOP support doesn't seem great #1684

@apjanke

Description

@apjanke

Hi Pygments! Thanks for making a really useful library.

I'm a Matlab programmer and I'm using Pygments along with AsciiDoc and Jekyll to generate documentation for my project.

It doesn't look like Pygments is doing a good job of supporting modern Matlab OOP language features like classdefs and argument blocks. Here's what the online Pygments demo looks like:

image

That could use some work, IMHO. Here's what the same code looks like in Matlab R2021a itself:

image

Would you entertain a PR to improve this? This is something I could probably do myself.

Related:

But it might take more than that, especially for arguments blocks and declarative property constraints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions