new reserved word 'goto'

This commit is contained in:
Roberto Ierusalimschy 2011-02-02 12:55:17 -02:00
parent 06c7efb4a9
commit a4a8914c20
2 changed files with 4 additions and 4 deletions

4
llex.c
View File

@ -1,5 +1,5 @@
/*
** $Id: llex.c,v 2.43 2010/12/10 14:53:15 roberto Exp roberto $
** $Id: llex.c,v 2.44 2011/01/26 16:30:02 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@ -35,7 +35,7 @@
/* ORDER RESERVED */
static const char *const luaX_tokens [] = {
"and", "break", "do", "else", "elseif",
"end", "false", "for", "function", "if",
"end", "false", "for", "function", "goto", "if",
"in", "local", "nil", "not", "or", "repeat",
"return", "then", "true", "until", "while",
"..", "...", "==", ">=", "<=", "~=", "<eof>",

4
llex.h
View File

@ -1,5 +1,5 @@
/*
** $Id: llex.h,v 1.64 2010/03/13 15:55:42 roberto Exp roberto $
** $Id: llex.h,v 1.65 2010/04/05 16:35:37 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@ -25,7 +25,7 @@ enum RESERVED {
/* terminal symbols denoted by reserved words */
TK_AND = FIRST_RESERVED, TK_BREAK,
TK_DO, TK_ELSE, TK_ELSEIF, TK_END, TK_FALSE, TK_FOR, TK_FUNCTION,
TK_IF, TK_IN, TK_LOCAL, TK_NIL, TK_NOT, TK_OR, TK_REPEAT,
TK_GOTO, TK_IF, TK_IN, TK_LOCAL, TK_NIL, TK_NOT, TK_OR, TK_REPEAT,
TK_RETURN, TK_THEN, TK_TRUE, TK_UNTIL, TK_WHILE,
/* other terminal symbols */
TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_EOS,