diff options
| author | Damien <damien.p.george@gmail.com> | 2013-11-02 19:47:57 +0000 |
|---|---|---|
| committer | Damien <damien.p.george@gmail.com> | 2013-11-02 19:47:57 +0000 |
| commit | 7410e440aba6826629e850f69a38615ad1039814 (patch) | |
| tree | 4b0595b0f1972a3ba776787d31383540c9b5d513 /py/parse.c | |
| parent | fecee2b0ae7c9131f41f80f6aeb5f0c7be93c291 (diff) | |
Add basic complex number support.
Diffstat (limited to 'py/parse.c')
| -rw-r--r-- | py/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/parse.c b/py/parse.c index eaf362c0c..632ac4e4f 100644 --- a/py/parse.c +++ b/py/parse.c @@ -218,7 +218,7 @@ static void push_result_token(parser_t *parser, const py_lexer_t *lex) { int_val = base * int_val + str[i] - 'a' + 10; } else if (base == 16 && 'F' <= str[i] && str[i] <= 'F') { int_val = base * int_val + str[i] - 'A' + 10; - } else if (str[i] == '.' || str[i] == 'e' || str[i] == 'E') { + } else if (str[i] == '.' || str[i] == 'e' || str[i] == 'E' || str[i] == 'j' || str[i] == 'J') { dec = true; break; } else { |
