Skip to content

doc: Update pygments syntax highlight for numbers #1659

Open
@fraya

Description

@fraya

This issue is not caused by the project but is related to it. We need to update the regular expressions used by the Pygments library to take into account the following updates to Opendylan:

  • DEP#11 which allows the use of underscore characters between any two digits.
  • Double float numbers (not considered until now).

The solution could be discussed here until a PR is proposed to the Pygments project.

Current regexp:

https://github.com/pygments/pygments/blob/edef94d66c2d70f05a86ac6098a69ab253b8d946/pygments/lexers/dylan.py#L140

The expressions below are case insensitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions