------------------------------------------------------------------------
-- throws a syntax error (mainly called by parser)
-- * ls.t.token has to be set by the function calling luaX:llex
--   (see luaX:next and luaX:lookahead elsewhere in this file)
------------------------------------------------------------------------

function luaX:syntaxerror(ls, msg)
  self:lexerror(ls, msg, ls.t.token)
end
