Pass options object into scanner

This is tested by making sure that the options used by the
PlaceholderParser are propagated to the scanner.