Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] Single quotes in numeric literals used with user-defined numerals are parsed incorrectly #2498

Closed
Kaznov opened this issue Sep 7, 2018 · 2 comments

Comments

@Kaznov
Copy link

Kaznov commented Sep 7, 2018

Issue Type: Bug

If .cpp file contains following code:

 using namespace std::chrono_literals;
 auto t = 10'000ms;

From the second line on, everything after single quote is highlighted as a string literal.

Extension version: 0.18.1
VS Code version: Code 1.26.1 (493869ee8e8a846b0855873886fc79d480d342de, 2018-08-16T18:34:20.517Z)
OS version: Linux x64 4.15.0-33-generic

@bobbrow
Copy link
Member

bobbrow commented Sep 7, 2018

it's the user-defined literal (ms) that's tripping up the colorizer. This is atom/language-c#127

@sean-mcmanus
Copy link
Collaborator

Fixed in VS Code Insiders.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants