fix line info for IfParser and ScriptParser