diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-02-06 16:23:57 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-06 16:23:57 +1100 |
| commit | e898b2d8dfaa121ff1a9375a0b18074e824b1e24 (patch) | |
| tree | 66142842e36118f3876dbcb29f05dedb055640bf /src | |
| parent | 68f7e739157f84c70d368c55d55f4996a61008e9 (diff) | |
| parent | c95e8dff960840599d1cf87f330a5fa2cbfa99b1 (diff) | |
Merge pull request #1277 from BradLewis/fix/hover-info-const-unary-expr
Fix hover info for constant unary exprs
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/ast.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/ast.odin b/src/server/ast.odin index 07f2169..b872e11 100644 --- a/src/server/ast.odin +++ b/src/server/ast.odin @@ -376,7 +376,7 @@ merge_attributes :: proc(attrs: []^ast.Attribute, foreign_attrs: []^ast.Attribut // a const variable declaration, so we do a quick check here to distinguish the cases. is_variable_declaration :: proc(expr: ^ast.Expr) -> bool { #partial switch v in expr.derived { - case ^ast.Comp_Lit, ^ast.Basic_Lit, ^ast.Type_Cast, ^ast.Call_Expr, ^ast.Binary_Expr: + case ^ast.Comp_Lit, ^ast.Basic_Lit, ^ast.Type_Cast, ^ast.Call_Expr, ^ast.Binary_Expr, ^ast.Unary_Expr: return true case: return false |