Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
3ba52b25
Commit
3ba52b25
authored
Apr 02, 2009
by
Roberto Raggi
Browse files
Fixed the diagnostic message for syntax errors.
parent
9d42fb36
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qtscripteditor/parser/javascript.g
View file @
3ba52b25
...
...
@@ -2179,7 +2179,7 @@ PropertyNameAndValueListOpt: PropertyNameAndValueList ;
}
}
const QString msg = QString::fromUtf8("Unexpected token: `%1'").arg(token_buffer[0].token);
const QString msg = QString::fromUtf8("Unexpected token: `%1'").arg(
spell[
token_buffer[0].token
]
);
diagnostic_messages.append(DiagnosticMessage(DiagnosticMessage::Error,
token_buffer[0].loc.startLine, token_buffer[0].loc.startColumn, msg));
}
...
...
src/plugins/qtscripteditor/parser/javascriptparser.cpp
View file @
3ba52b25
...
...
@@ -1184,7 +1184,7 @@ case 266: {
}
}
const
QString
msg
=
QString
::
fromUtf8
(
"Unexpected token: `%1'"
).
arg
(
token_buffer
[
0
].
token
);
const
QString
msg
=
QString
::
fromUtf8
(
"Unexpected token: `%1'"
).
arg
(
spell
[
token_buffer
[
0
].
token
]
);
diagnostic_messages
.
append
(
DiagnosticMessage
(
DiagnosticMessage
::
Error
,
token_buffer
[
0
].
loc
.
startLine
,
token_buffer
[
0
].
loc
.
startColumn
,
msg
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment