Add highlighting of rule in build statements

Highlight the rule being used in a build statement.  Also add `.` to acceptable characters in a rule name and relax whitespace matching before the name.
Merge pull request #788 from donkopotamus/patch-2

Add highlighting of rule in build statements