Skip to content

Highlighting comments with periods #11

Description

@Lysxia

The first comment is not recognized in this minimal example:

Inductive foo :=
| bar : foo    (* This is a comment. *)
               (* This is also a comment *)
.

I suspect this regex is causing this:

<string>:.*?[,.]</string>

It somehow gets recognized fine after removing the period in the comment, or by removing the : foo annotation before.

By the way, is there a reference about how these grammar files work?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions