Skip to content

Commit

Permalink
Merge pull request #56427 from zaevi/3.x_csharp_file-scoped_namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Jan 3, 2022
2 parents 08ce24a + d5ad76a commit ccbfe85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/mono/editor/script_class_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ Error ScriptClassParser::_parse_namespace_name(String &r_name, int &r_curly_stac
} else if (tk == TK_CURLY_BRACKET_OPEN) {
r_curly_stack++;
return OK;
} else if (tk == TK_SYMBOL && String(value) == ";") {
// for file-scoped namespace declaration
return OK;
} else {
error_str = "Unexpected token: " + get_token_name(tk);
error = true;
Expand Down

0 comments on commit ccbfe85

Please sign in to comment.