在Inno Setup Pascal脚本中的多行注释

问题描述 投票:0回答:1

根据 此处 它指出。

评论

多行 注释被放在大括号和星号内,作为 (* ... *). Pascal允许 单行 注释 { ... }.

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

{ This is a single line comment in pascal }

我一直在使用 { ... } 有多行。在Inno Setup中似乎没有问题 Code 节。但这是不是语法不好呢?

comments inno-setup pascalscript
1个回答
1
投票

这一条是错误的。这两种 (* ... *){ ... } 是多行注释,它们是等价的。

在Pascal (Script)中,单行注释的开头是 //:

// Single line comment

https:/www.freepascal.orgdocs-htmlrefrefse2.html

© www.soinside.com 2019 - 2024. All rights reserved.