Adds full syntax rule support for local. Fixes #9