mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
Add LESS support (.less)
Cheating slightly as it uses the CSS lexer, as pygments currently does not have a dedicated less lexer. But I figure language recognition and 90% percent correct syntax highlighting is better than neither.
This commit is contained in:
@@ -731,6 +731,13 @@ Lasso:
|
|||||||
- .lasso9
|
- .lasso9
|
||||||
- .ldml
|
- .ldml
|
||||||
|
|
||||||
|
Less:
|
||||||
|
type: markup
|
||||||
|
group: CSS
|
||||||
|
lexer: CSS
|
||||||
|
ace_mode: less
|
||||||
|
primary_extension: .less
|
||||||
|
|
||||||
LilyPond:
|
LilyPond:
|
||||||
lexer: Text only
|
lexer: Text only
|
||||||
primary_extension: .ly
|
primary_extension: .ly
|
||||||
|
|||||||
14
samples/Less/screen.less
Normal file
14
samples/Less/screen.less
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
@blue: #3bbfce;
|
||||||
|
@margin: 16px;
|
||||||
|
|
||||||
|
.content-navigation {
|
||||||
|
border-color: @blue;
|
||||||
|
color:
|
||||||
|
darken(@blue, 9%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.border {
|
||||||
|
padding: @margin / 2;
|
||||||
|
margin: @margin / 2;
|
||||||
|
border-color: @blue;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user