You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Do ctrl-click on any code identifier to go to definiton or help page.
This commit is contained in:
@@ -203,6 +203,7 @@ bool GDParser::_get_completable_identifier(CompletionType p_type,StringName& ide
|
||||
completion_line=tokenizer->get_token_line();
|
||||
completion_block=current_block;
|
||||
completion_found=true;
|
||||
completion_ident_is_call=false;
|
||||
tokenizer->advance();
|
||||
|
||||
if (tokenizer->get_token()==GDTokenizer::TK_IDENTIFIER) {
|
||||
@@ -210,6 +211,9 @@ bool GDParser::_get_completable_identifier(CompletionType p_type,StringName& ide
|
||||
tokenizer->advance();
|
||||
}
|
||||
|
||||
if (tokenizer->get_token()==GDTokenizer::TK_PARENTHESIS_OPEN) {
|
||||
completion_ident_is_call=true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3552,6 +3556,11 @@ int GDParser::get_completion_argument_index() {
|
||||
return completion_argument;
|
||||
}
|
||||
|
||||
int GDParser::get_completion_identifier_is_function() {
|
||||
|
||||
return completion_ident_is_call;
|
||||
}
|
||||
|
||||
GDParser::GDParser() {
|
||||
|
||||
head=NULL;
|
||||
|
||||
Reference in New Issue
Block a user