aboutsummaryrefslogtreecommitdiff
path: root/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'scan.c')
-rw-r--r--scan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/scan.c b/scan.c
index 8db5136..59861de 100644
--- a/scan.c
+++ b/scan.c
@@ -336,6 +336,10 @@ again:
return TRBRACE;
case '.':
nextchar(s);
+ if (isdigit(s->chr)) {
+ bufadd(&s->buf, '.');
+ return number(s);
+ }
if (s->chr != '.')
return TPERIOD;
loc = s->loc;