pub fn sem_error(ls: &mut LexState, msg: &[u8]) -> LuaErrorExpand description
Report a semantic error at the current line WITHOUT the near <token>
suffix.
Mirrors upstream luaK_semerror (lcode.c), which sets
ls->t.token = 0 before calling luaX_syntaxerror so the near clause is
suppressed. Used for attribute errors (unknown attribute '<name>',
global variables cannot be to-be-closed) where the offending construct is
the attribute itself, not the current lookahead token.