Skip to content

LESS lexer doesn't handle single line comments. #1046

@Anteru

Description

@Anteru

(Original issue 1342 created by bdmartin on 2017-03-22T19:33:33.168586+00:00)

The LessCssLexer doesn't appear to handle single line comments correctly.

e.g.

#!LESS

/* Constants / styles used across the product */

/* Fonts */
@font: Segoe UI, Helvetica, sans-serif;
.font-light {
    font-family: Segoe UI Light, HelveticaNeue-Light, Segoe UI, Helvetica, sans-serif;
    font-weight: 100; // FF doesn't include Segoe UI Light, font-weight lighter approximates it.
}
@font-size-huge: 3.0em;
// Our website uses this as its base
@font-size-website-base: 13px;
// These are basic font sizes used by the recorder. We should start making all of these consistent
@font-size-title: 1.3em;
@font-size-header: 1.2em;

And running "pygmentize.exe -O full -o test.html test.less" results in:

test_less.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-minorseverity: minorT-bugtype: a bugX-importedimported from Bitbucket

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions