Match section headings with quoted attributes and other fixes

Values should stop at a comment marker
Comments don't have to be at the start of a line

See: https://www.kernel.org/pub/software/scm/git/docs/git-config.html#EXAMPLES