Logo
Explore Help
Sign In
feedc0de/qt-creator
1
0
Fork 0
You've already forked qt-creator
forked from qt-creator/qt-creator
Code Pull Requests Activity
Files
8655603c2e1e5394773160ac1b6756bc89382373
qt-creator/src/plugins/cppeditor/testcases/highlightingtestcase.cpp

15 lines
207 B
C++
Raw Normal View History

CppEditor: Fully handle raw string literals in the syntax highlighter As of a3af941adf90bde0a2700f250f8d102cbdea3267, the built-in highlighter can properly handle multi-line raw string literals, so we don't need to abuse the semantic highlighter for this anymore. Fixes: QTCREATORBUG-26693 Fixes: QTCREATORBUG-28284 Change-Id: If644767dfa8a97294e84a541eea44143e8d1bb88 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-31 15:08:20 +01:00
auto func()
{
return R"(foo
foobar
R"notaprefix!(
barfoobar)" R"(second)" /* comment */ R"(third)";
}
ClangCodeModel: Ignore boolean and pointer literals ... when doing semantic highlighting. The syntax highlighter already handles these. Change-Id: I048e033eda5b72d2e6eafaaccdb66040a00afe6a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-31 18:02:08 +01:00
void keywords()
{
bool b1 = true;
bool b2 = false;
void *p = nullptr;
}
Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 92ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API