Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Anteru opened this issue Aug 31, 2019 · 0 comments
Closed

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

Anteru opened this issue Aug 31, 2019 · 0 comments
Labels
S-minor severity: minor T-bug type: a bug X-imported imported from Bitbucket

Comments

@Anteru
Copy link
Collaborator

Anteru commented Aug 31, 2019

(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

@Anteru Anteru added T-bug type: a bug X-imported imported from Bitbucket S-minor severity: minor labels Aug 31, 2019
@Anteru Anteru closed this as completed in 78d360e Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-minor severity: minor T-bug type: a bug X-imported imported from Bitbucket
Projects
None yet
Development

No branches or pull requests

1 participant