diff options
| author | Toby Goodwin <toby@paccrat.org> | 2015-05-15 19:36:55 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:24 +0100 |
| commit | 27c900d6ae9cd0dcf4bc97bc9b8c1882e40ccfa8 (patch) | |
| tree | 9ce71c54d395ebc0e84ecded69a75d2ed0ce831c /lex.c | |
| parent | 3202133256713848312dddefba2250a6803bfec6 (diff) | |
snapshot from cvs: 2005-03-03
Diffstat (limited to 'lex.c')
| -rw-r--r-- | lex.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -99,8 +99,8 @@ extern int yylex() { meta = (dollar ? dnw : nw); dollar = FALSE; if (newline) { - --lineno; /* slight space optimization; print_prompt2() always increments lineno */ - print_prompt2(); + --lineno; /* slight space optimization; nextline() always increments lineno */ + nextline(); newline = FALSE; } top: while ((c = gchar()) == ' ' || c == '\t') @@ -120,7 +120,7 @@ top: while ((c = gchar()) == ' ' || c == '\t') } while ((c = gchar()) != EOF && !meta[(unsigned char) c]); while (c == '\\') { if ((c = gchar()) == '\n') { - print_prompt2(); + nextline(); c = ' '; /* Pretend a space was read */ break; } else { @@ -198,7 +198,7 @@ top: while ((c = gchar()) == ' ' || c == '\t') while ((c = gchar()) != '\'' || (c = gchar()) == '\'') { buf[i++] = c; if (c == '\n') - print_prompt2(); + nextline(); if (c == EOF) { w = NW; scanerror("eof in quoted string"); @@ -215,7 +215,7 @@ top: while ((c = gchar()) == ' ' || c == '\t') return WORD; case '\\': if ((c = gchar()) == '\n') { - print_prompt2(); + nextline(); goto top; /* Pretend it was just another space. */ } ugchar(c); |