Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Sep 17, 2024
1 parent 202f19d commit a86125c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2664,6 +2664,8 @@ inline static bool is_matching_pair(int ch, int next_ch, int lh, int rh)
return (ch == lh) && (next_ch == rh);
}

// FIXME

static bool valid_float(const char *src)
{
if (*src == '.')
Expand Down Expand Up @@ -3130,12 +3132,14 @@ bool get_token(parser *p, bool last_op, bool was_postfix)
ch = get_char_utf8(&src);
int next_ch = peek_char_utf8(src);

#if 0
if ((ch == '.') && iswspace(next_ch)) {
SB_putchar(p->token, ch);
p->is_op = search_op(p->m, SB_cstr(p->token), NULL, false);
p->srcptr = (char*)src;
return true;
}
#endif

p->srcptr = (char*)src;

Expand Down Expand Up @@ -3202,8 +3206,10 @@ bool get_token(parser *p, bool last_op, bool was_postfix)
if (ch_next == '%')
break;

#if 0
if ((ch == '.') && iswspace(ch_next))
break;
#endif

if (p->flags.json && (ch_next == '-'))
break;
Expand Down

0 comments on commit a86125c

Please sign in to comment.