Skip to content

Code editor formatting of Javascript ES6 class is wrong on training page #273

@paul-calvelage

Description

@paul-calvelage

[Please note: This is not a duplicate of the issue I recently filed regarding a formatting bug by highlight.js on the solutions page. The issue here relates to the CodeMirror editor on the training page.]

Notice how the code editor formats this Javascript ES6 class incorrectly. The object properties within sayFullName() are not colored correctly. The words 'log', 'firstName', and 'lastName' should all be blue since they are object properties. On the other hand, it seems the word 'constructor' should be colored white rather than blue to match the other functions.

Curiously, the 'log' property is colored correctly in the greetExtraTerrestrials function that follows.

es6
Source: http://www.codewars.com/kata/56f7f8215d7c12c0e7000b19/train/javascript

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions