class RDoc::Markup::AttributeManager

def add_word_pair(start, stop, name, exclusive = false)

def add_word_pair(start, stop, name, exclusive = false)
  raise ArgumentError, "Word flags may not start with '<'" if
    start[0, 1] == '<'
  bitmap = @attributes.bitmap_for name
  if start == stop then
    @matching_word_pairs[start] = bitmap
  else
    pattern = /(#{Regexp.escape start})(\S+)(#{Regexp.escape stop})/
    @word_pair_map[pattern] = bitmap
  end
  @protectable << start[0, 1]
  @protectable.uniq!
  @exclusive_bitmap |= bitmap if exclusive
end