Skip to content

broken multiline string highlight in python #169

Closed
@swi2012

Description

@swi2012

commit e447e22 broke multiline python highlighting shown all triple quoted strings as docstring.
I've make this little changes at it's fixed problem on my side:

queries/python/highlights.scm
@@ -164,7 +164,7 @@
 
 (comment) @comment
 ((string) @doc
- (.match? @doc "^(\"\"\"|r\"\"\")"))
+ (.match? @doc "\)^(\"\"\"|r\"\"\")"))
 (string) @string
 
 (decorator) @function.special

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