diff --git a/spec/14-classes.md b/spec/14-classes.md index 6a8639d..36ad2cb 100644 --- a/spec/14-classes.md +++ b/spec/14-classes.md @@ -489,8 +489,15 @@ property-declaration: property-modifier: 'var' - visibility-modifier static-modifier? - static-modifier visibility-modifier? + visibility-modifier property-modifiers? + property-modifiers visibility-modifier? + +property-modifiers: + readonly-modifier + static-modifier + +readonly-modifier: + 'readonly' visibility-modifier: 'public' @@ -517,8 +524,15 @@ property-initializer: property-modifier: var - visibility-modifier static-modifieropt - static-modifier visibility-modifieropt + visibility-modifier property-modifiersopt + property-modifiers visibility-modifieropt + +property-modifiers: + readonly-modifier + static-modifier + +readonly-modifier: + readonly visibility-modifier: public diff --git a/spec/19-grammar.md b/spec/19-grammar.md index ae4117b..bef54bd 100644 --- a/spec/19-grammar.md +++ b/spec/19-grammar.md @@ -1012,8 +1012,15 @@ The grammar notation is described in [Grammars section](09-lexical-structure.md# property-modifier: var - visibility-modifier static-modifieropt - static-modifier visibility-modifieropt + visibility-modifier property-modifiersopt + property-modifiers visibility-modifieropt + +property-modifiers: + readonly-modifier + static-modifier + +readonly-modifier: + readonly visibility-modifier: public