summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorVincent Bernat <vincent@bernat.im>2015-06-06 09:36:35 +0200
committerVincent Bernat <vincent@bernat.im>2015-06-06 09:36:35 +0200
commitba40eb28f1b824dc21daa2abb2c41d4b9f3225c4 (patch)
tree2221f90b27ff086ed5e86a431537ee3cd1b282f7 /pygments
parentc8c042e3f06e4caea4f0e07318343dbc2eba8176 (diff)
downloadpygments-ba40eb28f1b824dc21daa2abb2c41d4b9f3225c4.tar.gz
Ability to handle LESS files.
The CSS parser just works fine with those files. Just add the appropriate extension and an alias.
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/css.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/css.py b/pygments/lexers/css.py
index c11e7ec0..600bbf1b 100644
--- a/pygments/lexers/css.py
+++ b/pygments/lexers/css.py
@@ -27,8 +27,8 @@ class CssLexer(RegexLexer):
"""
name = 'CSS'
- aliases = ['css']
- filenames = ['*.css']
+ aliases = ['css', 'less']
+ filenames = ['*.css', '*.less']
mimetypes = ['text/css']
tokens = {