Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

LESS color coding issue when a dash is followed by a number in a selector #1154

@danilocelic

Description

@danilocelic

While browsing the Brackets code, I opened /styles/brackets_codemirror_override.less and I noticed that a few selectors were color coded as if there were property values, in particular lines 59, 57 and 62 (from of Sprint 10's release). The color coding issue appears in LESS files, but I have not seen it in a CSS file using the same selectors.

In the following example:
span.cm-variable-2 {color: @accent-variable-2;}
"span.cm-variable-2" is color code as green. If you remove the "2" at the end, the color coding is correct, if you replace the number with a letter, the color coding is correct.

The dash followed by a number anywhere in the selector triggers this color coding issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions