XhmikosR / notepad2-mod

LOOKING FOR DEVELOPERS - Notepad2-mod, a Notepad2 fork, a fast and light-weight Notepad-like text editor with syntax highlighting
https://xhmikosr.github.io/notepad2-mod/
Other
1.45k stars 270 forks source link

Request for LESS Syntax #58

Closed werker closed 11 years ago

werker commented 11 years ago

Hi, would you please add the syntax scheme for LESS? The CSS scheme is not compatible to LESS when it comes to nested definitions.

QWp6t commented 11 years ago

This is a scintilla issue. There is limited support for this already.

This will have proper code folding

.node {
    hover {
        background: red;
    }
}

But if you use the & (cf. this) variable, it breaks.

.node {
    &:hover {
        background: red;
    }
}

Also, line 13 of scintilla's LexCSS.cxx file reads as follows:

// TODO: add features for Less if somebody feels like contributing; http://lesscss.org/