Skip to content

Support C string literals highlight - #508

Open
rhysd wants to merge 1 commit into
rust-lang:masterfrom
rhysd:c-str-lit
Open

Support C string literals highlight#508
rhysd wants to merge 1 commit into
rust-lang:masterfrom
rhysd:c-str-lit

Conversation

@rhysd

Copy link
Copy Markdown
Contributor

Recently Rust has stabilized C string literals syntax (the tracking issue). It will be available on the stable toolchain soon.

constHELLO:&core::ffi::CStr = c"Hello, world!";constHELLO:&core::ffi::CStr = cr#"Hello, world!"#;

This PR adds support for the syntax.

Before:

image

After:

image

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@rhysd