enable highlighting of patterns that start or end with punctuation

- check to see if patt starts or ends with punctuation
- if it does, use lookarounds instead of \b for regex boundaries
- when replacing spaces in patterns with bar, preserve space after bar
  (this accounts for patterns bounded by punctuation, which switches
  on lookaround behavior, that also contain spaces)
Merge pull request #438 from wcaleb/searchjs-punctuation

enable highlighting of patterns that start or end with punctuation