code: function checkDelimiter(
      delim: AnyParseNode,
      context: FunctionContext,
  ): SymbolParseNode {
      const symDelim = checkSymbolNodeType(delim);
      if (symDelim && utils.contains(delimiters, symDelim.text)) {
          return symDelim;
      } else {
          throw new ParseError(
              "Invalid delimiter: '" +
              (symDelim ? symDelim.text : JSON.stringify(delim)) +
              "' after '" + context.funcName + "'", delim);
      }
  }
docs: Delimiter functions