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

  /// in a row.
  public static func newlines(_ count: Int) -> Trivia {
    return [.newlines(count)]
  }

  /// Return a piece of trivia for some number of backtick '`' characters


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

  /// A carriage-return '\r' character.
  case carriageReturns(Int)

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