2.7 - [lex.comment] - 【词法.注释】

请不要转载本文;请不要以任何形式重新出版,发布本文;请在下载本文 24 小时内将其删除;禁止将本文用于商业目的。

2 Lexical conventions [lex]

2.7 Comments [lex.comment]

 

2 词法约定 【词法】

2.7 注释 【词法.注释】

 

The characters /* start a comment, which terminates with the characters */. These comments do not nest. The characters // start a comment, which terminates with the next new-line character. If there is a form-feed or a vertical-tab character in such a comment, only white-space characters shall appear between it and the new-line that terminates the comment: no diagnostic is required. [Note: The comment characters //, /*, and */ have no special meaning within a // comment and are treated just like other characters. Similarly, the comment characters // and /* have no special meaning within a /* comment. ]

 

字符 /* 开始一个由字符 */ 结束的注释。这种注释不能嵌套。字符 // 开始一个到下一个换行字符结束的注释。如果在这种注释中有换页或垂直表格字符,则在它与结束这个注释的换行字符之间只能存在空白字符:无需诊断。【注:// 注释中的注释字符 ///*,和 */ 不含有特殊意义,与其他字符同样处理。同样的,在 /* 注释中的注释字符 ///* 不含有特殊意义。】

 

PREV [lex.token] | NEXT [lex.header]上一页 【词法.标记】 | 下一页 【词法.头】
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值