Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Lines of tildes in comments screw up Lean parsing in this plugin #336

@kevinsullivan

Description

@kevinsullivan

This works fine:

/-
~~
-/
def x := 1

Add one more tilde and important stuff breaks.

/-
~~~
-/
def x := 1  -- code highlighting no longer works and other stuff breaks, too.

This is a problem because lines of tildes are used as subsection markup in RestructuredText documents, which J. Avigad and others are using to format Lean files as presentable documents.

This is a consequential bug, and given the simplicity of the test cases here, should be pretty easy to track down.

Thank you,
Kevin Sullivan
University of Virginia

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