syntax: calculate attributes for grammar capture expressions.

* lib/zile/bundle.lua (scopetoattr): Search for most complete
dot-delimited scope name match in colors table.
(load_grammar): Simplify calculation of match expression
attribute calculations using scopetoattr.
Also add capture expression attributes to loaded grammar table.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>