Skip to content

LESS support #15

Description

@monotasker

Since Bootstrap is based on LESS, I would find vim-css-color much more useful if it highlighted all of the colour references in .less files. There are two situations in which vim-css-color doesn't work for .less files:

  1. When declaring global colour variables:

    @white: #111

  2. When referring to a colour variable:

    div {background-color: @white;}

It will be important to look outside the current file, in other imported .less files, if the variable declaration isn't found in the current file.

It would be great if vim-css-color also respected LESS colour functions like spin(), lighten(), and darken(). But that would likely be a bit more complicated, so maybe at a separate stage. To begin with, it would be nice just to have the colour variable within the function highlighted:

div {background-color: darken(@white, 20%)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions