From 27c900d6ae9cd0dcf4bc97bc9b8c1882e40ccfa8 Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Fri, 15 May 2015 19:36:55 +0100 Subject: snapshot from cvs: 2005-03-03 --- lex.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lex.c') diff --git a/lex.c b/lex.c index b53ae09..09add71 100644 --- a/lex.c +++ b/lex.c @@ -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); -- cgit v1.2.3