From 83ce189a825a630dd2e204ffe31bd3871d087ea6 Mon Sep 17 00:00:00 2001 From: Ben Scott Date: Mon, 7 Jan 2013 15:27:01 +0000 Subject: [PATCH] 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. --- lib/linguist/languages.yml | 7 +++++++ samples/Less/screen.less | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 samples/Less/screen.less diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 6c7b00d5..630a9a70 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -731,6 +731,13 @@ Lasso: - .lasso9 - .ldml +Less: + type: markup + group: CSS + lexer: CSS + ace_mode: less + primary_extension: .less + LilyPond: lexer: Text only primary_extension: .ly diff --git a/samples/Less/screen.less b/samples/Less/screen.less new file mode 100644 index 00000000..89a252a3 --- /dev/null +++ b/samples/Less/screen.less @@ -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; +}