I do see the advantage of your script, so no problem. Just tested on some scripts and was surprised about the orphans. It happened twice:
- vars in lines preceeded by semicolons
- Functions (UDF) with at the end the setting of the return value
Just a good script for troubleshooting your scripts.