question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]: raw string literals breaks semantic colorization

See original GitHub issue

Describe 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

Screenshot_20220518_124917

Operating System

No response

Browser version

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nebularnoisecommented, Jun 2, 2022

@nebularnoise Have you submitted an issue upstream yet?

I just did

0reactions
jeremy-rifkincommented, Jun 2, 2022

Thanks 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found