Andrew Truckle
Andrew Truckle

Reputation: 19157

Multiline comments in Inno Setup Pascal Script

According to here it states:

#Comments The multiline comments are enclosed within curly brackets and asterisks as (* ... *). Pascal allows single-line comment enclosed within curly brackets { ... }.

(* This is a multi-line comments
   and it will span multiple lines. *)

{ This is a single line comment in pascal }

I had been using { ... } with multiple lines. It seems OK in Inno Setup Code section. But is it bad syntax?

Upvotes: 2

Views: 2227

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202393

That article is wrong. Both (* ... *) and { ... } are multi-line comments and they are equivalent.

A single line comment in Pascal (Script) starts with //:

// Single line comment

See https://www.freepascal.org/docs-html/ref/refse2.html

Upvotes: 3

Related Questions