Have you reported these as bugs? They should be easy to fix.
I know nothing about the "bat" language, so I don't even know how the
above *should* be parsed.
> I reported this over a year ago, for Emacs 25.0.93, see bug#23526.
Sorry, didn't see this one (I'm not subscribed to the bugs list any more,
so I only see the bugs that are Cc'd to me).
I believe the patch below should fix it (should appear in trunk
real-soon-now).