Add optional properties and missing punctuation to grammar (#289)
This commit is contained in:
Родитель
a8b5456762
Коммит
a0ea765fbf
|
@ -112,7 +112,7 @@ EscapeCharacter :
|
|||
one of `"` `r` `n` `t` `\`
|
||||
|
||||
Punctuator :
|
||||
one of `|` `:` `,` `;` `.` `<` `>` `(` `)` `{` `}` `[` `]` `@` `...`
|
||||
one of `|` `?` `=` `&` `:` `,` `;` `.` `<` `>` `(` `)` `{` `}` `[` `]` `@` `...`
|
||||
|
||||
WhiteSpace :
|
||||
<TAB>
|
||||
|
@ -205,8 +205,8 @@ ModelPropertyList :
|
|||
|
||||
ModelProperty:
|
||||
ModelSpreadProperty
|
||||
DecoratorList? Identifier `:` Expression
|
||||
DecoratorList? StringLiteral `:` Expression
|
||||
DecoratorList? Identifier `?`? `:` Expression
|
||||
DecoratorList? StringLiteral `?`? `:` Expression
|
||||
|
||||
ModelSpreadProperty :
|
||||
`...` Identifier
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
|
||||
  <a name="EscapeCharacter"></a>*EscapeCharacter* **:** **one of** `` " `` `` r `` `` n `` `` t `` `` \ ``
|
||||
|
||||
  <a name="Punctuator"></a>*Punctuator* **:** **one of** `` | `` `` : `` `` , `` `` ; `` `` . `` `` < `` `` > `` `` ( `` `` ) `` `` { `` `` } `` `` [ `` `` ] `` `` @ `` `` ... ``
|
||||
  <a name="Punctuator"></a>*Punctuator* **:** **one of** `` | `` `` ? `` `` = `` `` & `` `` : `` `` , `` `` ; `` `` . `` `` < `` `` > `` `` ( `` `` ) `` `` { `` `` } `` `` [ `` `` ] `` `` @ `` `` ... ``
|
||||
|
||||
  <a name="WhiteSpace"></a>*WhiteSpace* **:**
|
||||
   <a name="WhiteSpace-9384a802"></a><TAB>
|
||||
|
@ -191,8 +191,8 @@
|
|||
|
||||
  <a name="ModelProperty"></a>*ModelProperty* **:**
|
||||
   <a name="ModelProperty-18804a23"></a>*[ModelSpreadProperty](#ModelSpreadProperty)*
|
||||
   <a name="ModelProperty-87d190a4"></a>*[DecoratorList](#DecoratorList)*<sub>opt</sub> *[Identifier](#Identifier)* `` : `` *[Expression](#Expression)*
|
||||
   <a name="ModelProperty-d8c842ba"></a>*[DecoratorList](#DecoratorList)*<sub>opt</sub> *[StringLiteral](#StringLiteral)* `` : `` *[Expression](#Expression)*
|
||||
   <a name="ModelProperty-efb9eb30"></a>*[DecoratorList](#DecoratorList)*<sub>opt</sub> *[Identifier](#Identifier)* `` ? ``<sub>opt</sub> `` : `` *[Expression](#Expression)*
|
||||
   <a name="ModelProperty-54c19581"></a>*[DecoratorList](#DecoratorList)*<sub>opt</sub> *[StringLiteral](#StringLiteral)* `` ? ``<sub>opt</sub> `` : `` *[Expression](#Expression)*
|
||||
|
||||
  <a name="ModelSpreadProperty"></a>*ModelSpreadProperty* **:**
|
||||
   <a name="ModelSpreadProperty-ba1e81db"></a>`` ... `` *[Identifier](#Identifier)*
|
||||
|
|
Загрузка…
Ссылка в новой задаче