diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-05-28 18:07:32 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-05-28 18:07:32 -0300 |
| commit | 9863223fbf512d903a1677c861e4beb4f8feda4d (patch) | |
| tree | 964f1b36a5a7c9aff238d454fa4bffe88dacbe2d /lex.c | |
| parent | 9a1948e67d940d988260e738f2a251087835a318 (diff) | |
| download | lua-9863223fbf512d903a1677c861e4beb4f8feda4d.tar.gz lua-9863223fbf512d903a1677c861e4beb4f8feda4d.tar.bz2 lua-9863223fbf512d903a1677c861e4beb4f8feda4d.zip | |
first version of vararg facility (plus new function "call").
Diffstat (limited to 'lex.c')
| -rw-r--r-- | lex.c | 10 |
1 files changed, 8 insertions, 2 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | char *rcs_lex = "$Id: lex.c,v 2.31 1996/03/19 16:50:24 roberto Exp roberto $"; | 1 | char *rcs_lex = "$Id: lex.c,v 2.32 1996/03/21 16:33:47 roberto Exp roberto $"; |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | #include <ctype.h> | 4 | #include <ctype.h> |
| @@ -280,7 +280,13 @@ int luaY_lex (void) | |||
| 280 | if (current == '.') | 280 | if (current == '.') |
| 281 | { | 281 | { |
| 282 | save_and_next(); | 282 | save_and_next(); |
| 283 | return CONC; | 283 | if (current == '.') |
| 284 | { | ||
| 285 | save_and_next(); | ||
| 286 | return DOTS; /* ... */ | ||
| 287 | } | ||
| 288 | else | ||
| 289 | return CONC; /* .. */ | ||
| 284 | } | 290 | } |
| 285 | else if (!isdigit(current)) return '.'; | 291 | else if (!isdigit(current)) return '.'; |
| 286 | /* current is a digit: goes through to number */ | 292 | /* current is a digit: goes through to number */ |
