Skip to content

Quotes in triple-quoted string literals #12

@mortenpi

Description

@mortenpi

Note: I was directed here by GitHub, since they use this package (via Linguist) to do code highlighting on the site. However, I am not actually using TextMate, so it would be great if someone could confirm this bug.

Having single quotes in triple-quoted strings is not handled properly, which you can see in the following code snippet

foo() = asdf
"""
AAA " BBB
"""
# Highlighting is now broken after the single quotemark
foo() = asdf

which to me renders as
gh_highlight_bug
Python also has triple-quoted strings, so I would guess that the fix could be borrowed from there.

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