Issue #1342 new

LESS lexer doesn't handle single line comments.

Brandon Martin
created an issue

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

e.g.

/* 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

Comments (0)

  1. Log in to comment