Use the syntax table to determine if a delimiters starts a comment.

@purcell: can you help me with testing this change by using it and seeing if anything breaks?