code: @SuppressWarnings("fallthrough")
      private List<DCTree> inlineContent() {
          ListBuffer<DCTree> trees = new ListBuffer<>();
  
          skipWhitespace();
          int pos = bp;
          int depth = 1;
          textStart = -1;
  
          loop:
          while (bp < buflen) {
  
              switch (ch) {
                  case '\n': case '\r': case '\f':
                      newline = true;
                      // fall through
  
                  case ' ': case '\t':
                      nextChar();
                      break;
  
                  case '&':
                      entity(trees);
                      break;
  
                  case '<':
                      newline = false;
                      addPendingText(trees, bp - 1);
                      trees.add(html());
                      break;
  
                  case '{':
                      if (textStart == -1)
                          textStart = bp;
                      newline = false;
                      depth++;
                      nextChar();
                      break;
  
                  case '}':
                      newline = false;
                      if (--depth == 0) {
                          addPendingText(trees, bp - 1);
                          nextChar();
                          return trees.toList();
                      }
                      nextChar();
                      break;
  
                  case '@':
                      if (newline)
                          break loop;
                      // fallthrough
  
                  default:
                      if (textStart == -1)
                          textStart = bp;
                      nextChar();
                      break;
              }
          }
  
          return List.of(erroneous("dc.unterminated.inline.tag", pos));
      }
docs: Read general text content of an inline tag, including HTML entities and elements.
  Matching pairs of { } are skipped; the text is terminated by the first
  unmatched }. It is an error if the beginning of the next tag is detected.