@@ -163,11 +163,11 @@ default标签 → **default** :
163
163
164
164
###GRAMMAR OF A LABELED STATEMENT
165
165
166
- labeled -statement → statement-label loop-statement | statement-label switch-statement
167
-
168
- statement-label → label-name:
169
-
170
- label-name → identifier
166
+ labeled -statement → statement-label loop-statement | statement-label switch-statement
167
+
168
+ statement-label → label-name:
169
+
170
+ label-name → identifier
171
171
172
172
###标记语句语法
173
173
标记语句 → 语句标签 循环语句 | 语句标签 switch语句
@@ -376,6 +376,7 @@ return语句 → **return** 表达式 可选
376
376
###GRAMMAR OF A CODE BLOCK
377
377
378
378
code-block → {statements opt}
379
+
379
380
###代码块语法
380
381
代码块 → { 多条语句 可选 }
381
382
@@ -407,6 +408,7 @@ return语句 → **return** 表达式 可选
407
408
pattern-initializer → pattern initializer opt
408
409
409
410
initializer → =expression
411
+
410
412
###常数声明语法
411
413
常量声明 → 属性列表 可选 声明描述符列表 可选 ** let** 模式构造器列表
412
414
@@ -424,7 +426,7 @@ return语句 → **return** 表达式 可选
424
426
425
427
variable-declaration → variable-declaration-head variable-name type-annotation getter-setter-block
426
428
427
- variable-declaration → variable-declaration-head variable-name type-annotation getter-setter-keyword-block
429
+ variable-declaration → variable-declaration-head variable-name type-annotation getter-setter-keyword-block
428
430
429
431
variable-declaration → variable-declaration-head variable-name type-annotation initializer opt willSet-didSet-block
430
432
@@ -1740,8 +1742,8 @@ superclass-initializer-expression → super.init
1740
1742
###GRAMMAR OF A PROTOCOL COMPOSITION TYPE
1741
1743
1742
1744
protocol-composition-type → protocol <protocol-identifier-list opt >
1743
-
1744
- protocol-identifier-list → protocol-identifier protocol-identifier,protocol-identifier-list
1745
+
1746
+ protocol-identifier-list → protocol-identifier protocol-identifier,protocol-identifier-list
1745
1747
1746
1748
protocol-identifier → type-identifier
1747
1749
0 commit comments