diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/completion.odin | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin index e8c3a4a..7c3b397 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -100,7 +100,7 @@ get_completion_list :: proc( if position_context.import_stmt != nil { completion_type = .Package } - + done: if position_context.switch_type_stmt != nil && position_context.case_clause != nil { @@ -130,7 +130,7 @@ get_completion_list :: proc( if position_context.basic_lit != nil { if _, ok := position_context.basic_lit.derived.(^ast.Basic_Lit); ok { return list, true - } + } } switch completion_type { @@ -295,7 +295,8 @@ get_selector_completion :: proc( if selector.type != .Variable && selector.type != .Package && - selector.type != .Enum { + selector.type != .Enum && + selector.type != .Function { return } @@ -1042,8 +1043,8 @@ get_identifier_completion :: proc( if position_context.identifier != nil { if ident, ok := position_context.identifier.derived.(^ast.Ident); ok { lookup_name = ident.name - } - } + } + } pkgs := make([dynamic]string, context.temp_allocator) |