enum extension and initiali definition different
The syntax for defining an enum and extending it are different. While the definition expects square brackets and a comma separated list of enumerators, the extension doesn't allow the brackets and requires each enumerator to be on its own line without commas.
enum color: [
red, green, blue
]
extend color:
cyan
magenta
yellow
Suggestion: Use the same syntax for both.