function classifyCharacter(code) {
  if (
    code === codes.eof ||
    markdownLineEndingOrSpace(code) ||
    unicodeWhitespace(code)
  ) {
    return constants.characterGroupWhitespace
  }

  if (unicodePunctuation(code)) {
    return constants.characterGroupPunctuation
  }
}
// based on the class of surrounding characters.
based on the class of surrounding characters.
based on the class of surrounding characters .
function classifyCharacter(code) {
  if (
    code === codes.eof ||
    markdownLineEndingOrSpace(code) ||
    unicodeWhitespace(code)
  ) {
    return constants.characterGroupWhitespace
  }
  if (unicodePunctuation(code)) {
    return constants.characterGroupPunctuation
  }
}
function classifyCharacter ( code ) { if ( code === codes . eof || markdownLineEndingOrSpace ( code ) || unicodeWhitespace ( code ) ) { return constants . characterGroupWhitespace } if ( unicodePunctuation ( code ) ) { return constants . characterGroupPunctuation } }
based on the class of surrounding characters.
based on the class of surrounding characters .