Skip to content
This repository was archived by the owner on Feb 20, 2022. It is now read-only.
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

raw-string regex comment #44

Description

@petervaro

The re.VERBOSE flag allows to write comments inside the string, however that comment should end at the end of string. The current behaviour is broken:

pattern = compile(r"""
\d\t
# this part is a comment""", MULTILINE | VERBOSE)
#                       ^
#		should end here

Currently the entire line is highlighted as a comment.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions