aboutsummaryrefslogtreecommitdiff
path: root/src/lj_errmsg.h
diff options
context:
space:
mode:
authorMike Pall <mike>2026-07-20 10:20:49 +0200
committerMike Pall <mike>2026-07-20 10:20:49 +0200
commita2ce8114f107464473070427e69e84f4923bd08a (patch)
tree41fb420f360bf1446ae253dda360af5300e401a6 /src/lj_errmsg.h
parent14d8a7a27dc8c626ab9e7c7e9e50b6df6def4f03 (diff)
downloadluajit-a2ce8114f107464473070427e69e84f4923bd08a.tar.gz
luajit-a2ce8114f107464473070427e69e84f4923bd08a.tar.bz2
luajit-a2ce8114f107464473070427e69e84f4923bd08a.zip
Backport some v3.0 syntax extensions.
Documentation in #1475. Backport discussion in #1476. Thanks to Appla, slashOwO, Sergey Kaplun, CppCXY.
Diffstat (limited to 'src/lj_errmsg.h')
-rw-r--r--src/lj_errmsg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lj_errmsg.h b/src/lj_errmsg.h
index daf7fb6bf..ad8581c99 100644
--- a/src/lj_errmsg.h
+++ b/src/lj_errmsg.h
@@ -140,9 +140,13 @@ ERRDEF(XDOTS, "cannot use " LUA_QL("...") " outside a vararg function")
140ERRDEF(XSYNTAX, "syntax error") 140ERRDEF(XSYNTAX, "syntax error")
141ERRDEF(XFOR, LUA_QL("=") " or " LUA_QL("in") " expected") 141ERRDEF(XFOR, LUA_QL("=") " or " LUA_QL("in") " expected")
142ERRDEF(XBREAK, "no loop to break") 142ERRDEF(XBREAK, "no loop to break")
143ERRDEF(XCONT, "no loop to continue")
143ERRDEF(XLUNDEF, "undefined label " LUA_QS) 144ERRDEF(XLUNDEF, "undefined label " LUA_QS)
144ERRDEF(XLDUP, "duplicate label " LUA_QS) 145ERRDEF(XLDUP, "duplicate label " LUA_QS)
145ERRDEF(XGSCOPE, "<goto %s> jumps into the scope of local " LUA_QS) 146ERRDEF(XGSCOPE, "<goto %s> jumps into the scope of local " LUA_QS)
147ERRDEF(XCSCOPE, "<continue> jumps into the scope of local " LUA_QS)
148ERRDEF(XCONSTA, "attempt to assign to const variable " LUA_QS)
149ERRDEF(XCONSTR, "attempt to re-declare const variable " LUA_QS)
146 150
147/* Bytecode reader errors. */ 151/* Bytecode reader errors. */
148ERRDEF(BCFMT, "cannot load incompatible bytecode") 152ERRDEF(BCFMT, "cannot load incompatible bytecode")