Skip to content

Raw string support? #3

@petercanz

Description

@petercanz

Hi

Thanks you for your Rust extension.

I notice that it does not seem to cope with raw strings (i.e. r#"...raw string..."#).

The problem is that when the raw string contains odd quote marks then things can get out of sync, and the following Rust code looks like a quoted string.

As a work-around I can add a comment with an odd quote character immediately after the raw string, so it's not the end of the world.

But it would be nice if there was some support for raw strings, or at least. sub-set of raw string quotes.

I can imagine that it is not easy to cover all raw strings since that would require a context sensitive grammar (any number of matching # marks), but it would be a real help even if it only covers one or two # marks (e.g. r#'' and r##" open quotes).

I'd be happy to help if I could, although I currently know nothing about Panic extensions.

Peter.

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