Besides the above, I also noticed that the parser also fails when calling a %SYS routine as in:

do DecomposeStatus^%apiOBJ(sc,.err,"-d")

@Victor Gordillo please clarify what you mean by "the parser fails". Maybe with a screenshot?

InterSystems deletes the source code of many %-routines before shipping, including %apiOBJ. Perhaps this is causing the problem you are seeing.