summaryrefslogtreecommitdiff
path: root/src/llex.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2015-02-26 12:00:00 +0000
committerrepogen <>2015-02-26 12:00:00 +0000
commit4fd8751bd02b0618b975504491e2221ced98c8d4 (patch)
treece972c3b21c96d9e7dfa59a4745e4fa0e6a18168 /src/llex.c
parent357e7cdc32cd4224b03748e4f284857e47f70a68 (diff)
downloadlua-github-5.2.x.tar.gz
Diffstat (limited to 'src/llex.c')
-rw-r--r--src/llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llex.c b/src/llex.c
index c4b820e8..32cdcf1c 100644
--- a/src/llex.c
+++ b/src/llex.c
@@ -1,5 +1,5 @@
/*
-** $Id: llex.c,v 2.63.1.2 2013/08/30 15:49:41 roberto Exp $
+** $Id: llex.c,v 2.63.1.3 2015/02/09 17:56:34 roberto Exp $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@@ -152,7 +152,7 @@ static void inclinenumber (LexState *ls) {
if (currIsNewline(ls) && ls->current != old)
next(ls); /* skip `\n\r' or `\r\n' */
if (++ls->linenumber >= MAX_INT)
- luaX_syntaxerror(ls, "chunk has too many lines");
+ lexerror(ls, "chunk has too many lines", 0);
}