We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a446c0b commit 14c787bCopy full SHA for 14c787b
highlighter/jsonhighlighter.cpp
@@ -10,7 +10,7 @@ JsonHighlighter::JsonHighlighter(QTextDocument *doc):
10
void JsonHighlighter::initKeyWordsRules()
11
{
12
// init all the pattern
13
- mStringPattern = R"(".*")";
+ mStringPattern = R"("[A-Za-z0-9_]*"|(?<=:)\s*".*")";
14
mBoolPattern = R"(\b(true|false)\b)";
15
mNumberPattern = R"(\b\d+\b)";
16
mCommentPattern = R"(//.*)";
0 commit comments