diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-02-05 00:41:55 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-02-05 00:41:55 +0100 |
| commit | d62b41847278bc3902da98e0a072b0f0ab1dc7ca (patch) | |
| tree | 748cb433f5308c2377c7d61835828f145bec970f /src/analysis | |
| parent | 7c4f2e8aaf32708f13687c1b8413036e525268e3 (diff) | |
Fix semantic token call expression always being treated as function. Fix float basic parsing.
Diffstat (limited to 'src/analysis')
| -rw-r--r-- | src/analysis/analysis.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analysis/analysis.odin b/src/analysis/analysis.odin index 5a374a5..9ca6270 100644 --- a/src/analysis/analysis.odin +++ b/src/analysis/analysis.odin @@ -798,6 +798,8 @@ resolve_basic_lit :: proc(ast_context: ^AstContext, basic_lit: ast.Basic_Lit) -> value.type = .Integer; } else if v, ok := strconv.parse_bool(basic_lit.tok.text); ok { value.type = .Bool; + } else if v, ok := strconv.parse_f64(basic_lit.tok.text); ok { + value.type = .Float; } else { value.type = .String; } |