It is possible to define "local" procedures inside of procedures. Currently the syntax highlighting does not properly reflect this: