mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
- more fixes on #672 on windows
- added #660, but need help on osx, help please I don't have a mac! - fixed #667 and #668 (eol detection in comments) - added #670 (hint when using method without () )
This commit is contained in:
@@ -510,7 +510,11 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
|
||||
*dst = src->get_named(*index,&valid);
|
||||
|
||||
if (!valid) {
|
||||
err_text="Invalid get index '"+index->operator String()+"' (on base: '"+_get_var_type(src)+"').";
|
||||
if (src->has_method(*index)) {
|
||||
err_text="Invalid get index '"+index->operator String()+"' (on base: '"+_get_var_type(src)+"'). Did you mean '."+index->operator String()+"()' ?";
|
||||
} else {
|
||||
err_text="Invalid get index '"+index->operator String()+"' (on base: '"+_get_var_type(src)+"').";
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -284,7 +284,8 @@ void GDTokenizerText::_advance() {
|
||||
while(GETCHAR(0)!='\n') {
|
||||
code_pos++;
|
||||
if (GETCHAR(0)==0) { //end of file
|
||||
_make_error("Unterminated Comment");
|
||||
//_make_error("Unterminated Comment");
|
||||
_make_token(TK_EOF);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user