diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-22 01:14:45 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-22 01:14:45 +0100 |
| commit | 8197c02dcf964be404cd199858e84e9e8f3905e5 (patch) | |
| tree | 177393f565eddb1178423d776cb275d56cfcffee /src/tokenizer.cpp | |
| parent | 9faf0020cc04c9c27fc7a7e7e41edce6df31376e (diff) | |
Default result values for procedure types; Named result values in `return` statements
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index d33926260..09a5d3dd9 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -546,7 +546,14 @@ Token scan_number_to_token(Tokenizer *t, bool seen_decimal_point) { if (t->curr - prev <= 2) { token.kind = Token_Invalid; } - } else { + } /* else if (t->curr_rune == 'h') { // Hexadecimal Float + token.kind = Token_Float; + advance_to_next_rune(t); + scan_mantissa(t, 16); + if (t->curr - prev <= 2) { + token.kind = Token_Invalid; + } + } */ else { seen_decimal_point = false; scan_mantissa(t, 10); |