added site files
This commit is contained in:
parent
a6f70a6c78
commit
329148c253
253 changed files with 30486 additions and 0 deletions
52
EnlighterJS/Source/Language/Less.js
Normal file
52
EnlighterJS/Source/Language/Less.js
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
---
|
||||
description: LESS (Cascading Style Sheets)
|
||||
|
||||
license: MIT-style
|
||||
|
||||
authors:
|
||||
- Andi Dittrich
|
||||
|
||||
requires:
|
||||
- Core/1.4.5
|
||||
|
||||
provides: [EnlighterJS.Language.less]
|
||||
...
|
||||
*/
|
||||
EnlighterJS.Language.less = new Class({
|
||||
|
||||
Extends: EnlighterJS.Language.css,
|
||||
|
||||
setupLanguage: function() {
|
||||
this.parent();
|
||||
|
||||
this.keywords = Object.merge(this.keywords, {
|
||||
|
||||
});
|
||||
|
||||
this.patterns = Object.merge(this.patterns, {
|
||||
'vars': {
|
||||
pattern: /(@[\w_-]+:?)/gi,
|
||||
alias: 'kw4'
|
||||
},
|
||||
/*
|
||||
'fn': {
|
||||
pattern: /\b(\.?[\w_-]+)\s*\(/gm,
|
||||
alias: ''
|
||||
},
|
||||
'include': {
|
||||
pattern: /(\.[\w_-]+)\s*;/gm,
|
||||
alias: 'me0'
|
||||
},*/
|
||||
'symbols': {
|
||||
pattern: /,|\.|;|:|>|\+|\-|\*|\//g,
|
||||
alias: 'sy0'
|
||||
},
|
||||
'singleComments': {
|
||||
pattern: this.common.slashComments,
|
||||
alias: 'co1'
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue