def restore(text)
      return text if @node.passthroughs.empty?

      # Fix passthrough placeholders that got caught up in syntax highlighting.
      text = text.gsub(PASS_SLOT_RX, "#{PASS_START_MARK}\\1#{PASS_END_MARK}")

      # Restore converted passthroughs.
      @node.restore_passthroughs(text)
    end
def restore(text)
      return text if @node.passthroughs.empty?

      # Fix passthrough placeholders that got caught up in syntax highlighting.
      text = text.gsub(PASS_SLOT_RX, "#{PASS_START_MARK}\\1#{PASS_END_MARK}")

      # Restore converted passthroughs.
      @node.restore_passthroughs(text)
    end
Restores the extracted passthroughs by reinserting them into the
 placeholder positions.

 @param text [String] the text into which to restore the passthroughs.
 @return [String] a copy of the *text* with restored passthroughs.