   /// in a row.
   public static func newlines(_ count: Int) -> Trivia {
     return [.newlines(count)]
+  }
+
+  /// Return a piece of trivia for some number of carriage-return characters
+  /// in a row.
+  public static func carriageReturns(_ count: Int) -> Trivia {
+    return [.carriageReturns(count)]
   }
 
   /// Return a piece of trivia for some number of backtick '`' characters


  /// A newline '\n' character.
  case newlines(Int)

  /// A backtick '`' character, used to escape identifiers.
  case backticks(Int)

      var total = 0
      for char in text.utf8 {
        total += 1
        if char == 0x0a /* ASCII newline */
          || char == 0x0d /* ASCII carriage-return */{
          col = 0
          lines += 1
        } else {
