diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2023-03-08 21:48:11 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2023-03-08 21:48:11 +0100 |
| commit | 4835c06b967d4032156a3af30dcc7ecbef4c0557 (patch) | |
| tree | ef0ad86b2b920495c7696b3fe8ab6d5ca8f5ed9a /src | |
| parent | edbc1c6ea624f7feee2dbf4804543c9329eef738 (diff) | |
Fix completion on implicit enums for assignments
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/completion.odin | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin index 4111a79..2ca11d0 100644 --- a/src/server/completion.odin +++ b/src/server/completion.odin @@ -735,6 +735,8 @@ get_implicit_completion :: proc( return } } + + reset_ast_context(ast_context) } if position_context.comp_lit != nil && @@ -760,6 +762,8 @@ get_implicit_completion :: proc( return } } + + reset_ast_context(ast_context) } //infer bitset and enums based on the identifier comp_lit, i.e. a := My_Struct { my_ident = . } @@ -868,6 +872,8 @@ get_implicit_completion :: proc( } } } + + reset_ast_context(ast_context) } if position_context.binary != nil && @@ -906,6 +912,8 @@ get_implicit_completion :: proc( return } } + + reset_ast_context(ast_context) } if position_context.assign != nil && @@ -953,6 +961,8 @@ get_implicit_completion :: proc( return } } + + reset_ast_context(ast_context) } if position_context.returns != nil && position_context.function != nil { @@ -996,6 +1006,8 @@ get_implicit_completion :: proc( return } } + + reset_ast_context(ast_context) } if position_context.call != nil { |