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

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

Activity

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

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