-
Notifications
You must be signed in to change notification settings - Fork 30
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
Unrecognized literal string suffixes #610
Comments
User literals should be covered (the ref link) but I was unaware of std literals till now. https://en.cppreference.com/w/cpp/string/basic_string_view/operator%22%22sv https://en.cppreference.com/w/cpp/string/basic_string/operator%22%22s https://en.cppreference.com/w/cpp/numeric/complex/operator%22%22i |
Numeric user-defined literal suffixes are already covered, but not suffixes for strings and characters. All literal suffixes are "user-defined", even the ones provided by the standard library. However, the suffixes that do not start with an underscore are reserved for use by the standard library (such as std::string operator""s), and they should not be defined in a program. By the way, I think the tag used for numeric literal suffixes ( |
Sadly the However we can do both; |
My proposal in the PR: #622 |
published with |
Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
It looks like:
It should look like:
The suffixes "s" and "sv" should be highlighted.
Reference
https://en.cppreference.com/w/cpp/language/user_literal
The text was updated successfully, but these errors were encountered: