Skip to main content

sem_error

Function sem_error 

Source
pub fn sem_error(ls: &mut LexState, msg: &[u8]) -> LuaError
Expand description

Report a semantic error at the current line WITHOUT the near <token> suffix.

The near clause is suppressed by passing token 0. 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.