diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-04-04 18:18:10 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-04-04 18:18:10 +0200 |
| commit | 8284db9000e32320e3d710c6a0b55c0c5525f483 (patch) | |
| tree | cde3a0e50a0b5d38dc49033e271fbe563330347c /src | |
| parent | 4b0db52920dab5d56c9e42a948a420e984db50b1 (diff) | |
Fix autocompletion after non-hashtag expression
Diffstat (limited to 'src')
| -rw-r--r-- | src/ide/complete.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ide/complete.rs b/src/ide/complete.rs index 27b199fd..da9e0725 100644 --- a/src/ide/complete.rs +++ b/src/ide/complete.rs @@ -317,6 +317,8 @@ fn complete_field_accesses(ctx: &mut CompletionContext) -> bool { if ctx.leaf.range().end == ctx.cursor; if let Some(prev) = ctx.leaf.prev_sibling(); if prev.is::<ast::Expr>(); + if prev.parent_kind() != Some(SyntaxKind::Markup) || + prev.prev_sibling_kind() == Some(SyntaxKind::Hashtag); if let Some(value) = analyze_expr(ctx.world, &prev).into_iter().next(); then { ctx.from = ctx.cursor; |
