aboutsummaryrefslogtreecommitdiffstats
path: root/module/lua/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/lua/llex.c')
-rw-r--r--module/lua/llex.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/module/lua/llex.c b/module/lua/llex.c
index 8760155d0..50c301f59 100644
--- a/module/lua/llex.c
+++ b/module/lua/llex.c
@@ -431,9 +431,12 @@ static int llex (LexState *ls, SemInfo *seminfo) {
if (sep >= 0) {
read_long_string(ls, seminfo, sep);
return TK_STRING;
- }
- else if (sep == -1) return '[';
- else lexerror(ls, "invalid long string delimiter", TK_STRING);
+ } else if (sep == -1) {
+ return '[';
+ } else {
+ lexerror(ls, "invalid long string delimiter", TK_STRING);
+ break;
+ }
}
case '=': {
next(ls);