mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Merge pull request #47863 from mphe/same_line_warning_ignore
Allow warning-ignore in the same line as the respective warning
This commit is contained in:
commit
6355877c0d
1 changed files with 1 additions and 1 deletions
|
|
@ -8755,7 +8755,7 @@ Error GDScriptParser::_parse(const String &p_base_path) {
|
||||||
GDScriptWarning &w = E->get();
|
GDScriptWarning &w = E->get();
|
||||||
int skip_index = -1;
|
int skip_index = -1;
|
||||||
for (int i = 0; i < warning_skips.size(); i++) {
|
for (int i = 0; i < warning_skips.size(); i++) {
|
||||||
if (warning_skips[i].first >= w.line) {
|
if (warning_skips[i].first > w.line) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
skip_index = i;
|
skip_index = i;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue