0

A first try: \autoScoped{<arg>} opens a scope which can be auto ended by \\ or \par, and then uses <arg>. Note this is not the usual way that LaTeX should be used and this first try is far from complete and might break many things.
\documentclass{article}
\usepackage{xpatch}
\makeatletter
\newi...