mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 11:44:21 +00:00
Fix typos with codespell
Using codespell 1.17.1. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
This commit is contained in:
parent
b1b56fd045
commit
3e78963bb9
23 changed files with 36 additions and 37 deletions
|
|
@ -1042,7 +1042,7 @@ GDScriptParser::EnumNode *GDScriptParser::parse_enum() {
|
|||
if (check(GDScriptTokenizer::Token::BRACE_CLOSE)) {
|
||||
break; // Allow trailing comma.
|
||||
}
|
||||
if (consume(GDScriptTokenizer::Token::IDENTIFIER, R"(Expected identifer for enum key.)")) {
|
||||
if (consume(GDScriptTokenizer::Token::IDENTIFIER, R"(Expected identifier for enum key.)")) {
|
||||
EnumNode::Value item;
|
||||
item.identifier = parse_identifier();
|
||||
item.parent_enum = enum_node;
|
||||
|
|
@ -2516,7 +2516,7 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_call(ExpressionNode *p_pre
|
|||
GDScriptParser::ExpressionNode *GDScriptParser::parse_get_node(ExpressionNode *p_previous_operand, bool p_can_assign) {
|
||||
if (match(GDScriptTokenizer::Token::LITERAL)) {
|
||||
if (previous.literal.get_type() != Variant::STRING) {
|
||||
push_error(R"(Expect node path as string or identifer after "$".)");
|
||||
push_error(R"(Expect node path as string or identifier after "$".)");
|
||||
return nullptr;
|
||||
}
|
||||
GetNodeNode *get_node = alloc_node<GetNodeNode>();
|
||||
|
|
@ -2539,7 +2539,7 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_get_node(ExpressionNode *p
|
|||
} while (match(GDScriptTokenizer::Token::SLASH));
|
||||
return get_node;
|
||||
} else {
|
||||
push_error(R"(Expect node path as string or identifer after "$".)");
|
||||
push_error(R"(Expect node path as string or identifier after "$".)");
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue