TMS Script Parser behaves different than Delphi

It's not trivial, unfortunately, because the parser is based on a full static, text-based grammar. It's not trivial to partially modify it, there is also the semantic analysis.