mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 19:24:18 +00:00
Merge pull request #27170 from timoschwarzer/allow-whitespaces-in-warning-ignore-comments
Allow whitespaces in warning-ignore comments
This commit is contained in:
commit
07b76c0376
2 changed files with 7 additions and 6 deletions
|
|
@ -286,7 +286,7 @@ void ScriptTextEditor::_warning_clicked(Variant p_line) {
|
|||
code_editor->get_text_edit()->cursor_set_line(p_line.operator int64_t());
|
||||
} else if (p_line.get_type() == Variant::DICTIONARY) {
|
||||
Dictionary meta = p_line.operator Dictionary();
|
||||
code_editor->get_text_edit()->insert_at("#warning-ignore:" + meta["code"].operator String(), meta["line"].operator int64_t() - 1);
|
||||
code_editor->get_text_edit()->insert_at("# warning-ignore:" + meta["code"].operator String(), meta["line"].operator int64_t() - 1);
|
||||
_validate_script();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue