[BUG]: raw string literals breaks semantic colorization
See original GitHub issueDescribe the bug
Colorization is broken in the code window, after using a raw string literal.
Steps to reproduce
Paste the following code:
#include <string>
#include <iostream>
int main(){
auto s = R""""(
Hello World
)"""";
std::cout << "hello";
}
Expected behavior
The following line
std::cout << "hello";
Should not be colorized fully in ‘string colour’.
Reproduction link
https://godbolt.org/z/3q71v411j
Screenshots
Operating System
No response
Browser version
No response
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
[JDK-8196004] JEP 326: Raw String Literals (Preview) - Java Bug ...
A raw string literal opens with a sequence of one or more backticks. The raw string literal closes when a backtick sequence is...
Read more >Python Literal r'\' Not Accepted [duplicate] - Stack Overflow
It would be simpler to define raw strings with the semantics that a backslash has no special meaning whatsoever. Both lexer and IDE...
Read more >[Pitch] Regular Expression Literals - Pitches - Swift Forums
I was hoping that it could just piggy-back off raw string literals, ... but if the semantics of the same regex literal is...
Read more >Multiline raw string literal has wrong line endings
Closed - Not a Bug ... Multiline raw string literal has wrong line endings ... back in 16.7-16.8, however in 16.9 it is...
Read more >Strings in Go - Go 101
Go supports two styles of string literals, the double-quote style (or interpreted literals) and the back-quote style (or raw string literals).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just did
Thanks 😃