commit 61899719409df0c278da7ce18cb6ce54bcc1b114
parent 689beeb53d4fce5e8b5c51b3db367839dcb1e069
Author: sin <sin@2f30.org>
Date: Fri, 9 May 2014 16:40:24 +0100
Rename Illegal_Token to Illegal_Input
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lexer.c b/lexer.c
@@ -19,7 +19,7 @@ enum state {
State_Quote,
State_Dot,
State_Comment,
- State_Illegal_Token,
+ State_Illegal_Input,
};
int
@@ -80,7 +80,7 @@ gettok(struct lexerctx *ctx, const char *buf, size_t len)
else if (*ctx->e == ';')
state = State_Comment;
else
- state = State_Illegal_Token;
+ state = State_Illegal_Input;
if (state != State_Se)
ctx->s = ctx->e;
break;
@@ -202,9 +202,9 @@ gettok(struct lexerctx *ctx, const char *buf, size_t len)
ctx->s = tmp;
}
break;
- case State_Illegal_Token:
+ case State_Illegal_Input:
tok.type = Error;
- tok.s = "illegal token";
+ tok.s = "illegal input";
tok.e = NULL;
return tok;
default: