根据这里指出:
#评论 multiline 注释包含在大括号内,并且 星号为
。 Pascal 允许包含单行注释 在大括号内(* ... *)
.{ ... }
(* This is a multi-line comments and it will span multiple lines. *) { This is a single line comment in pascal }
我一直在多行中使用
{ ... }
。在 Inno Setup Code
部分似乎没问题。但这是不是语法不好?
那篇文章是错误的。
(* ... *)
和{ ... }
都是多行注释,它们是等价的。
Pascal(脚本)中的单行注释以
//
: 开头
// Single line comment