Delphi – E2052 Unterminated string 

A closing apostrophe at the end of a character string was not found by the delphi compiler.

Character strings cannot be continued onto the next line; however, you can concatenate two character strings on separate lines with the ‘+’ operator. If we have two strings, for example, ‘Embarcadero’ and ‘RAD Studio,’ they will be concatenated before runtime.

This is true not only for strings, but also for non-variable integer, floating-point, and set expressions. The reason for the evaluation at build time is to allow constant expressions to be used in conditional compilation directives like $IF expression> and $IFEND. This avoids the cost of continually evaluating an expression whose outcome is guaranteed to remain constant.

program Produce;

begin
  Writeln('Hello world!);   (*<-- Error message here -*)
end.

The string’s ending quote is missing – no big concern; it happens all the time.

program Solve;

begin
  Writeln('Hello world!');
end.

So you provided the final quote, and the compiler is satisfied.