added site files
This commit is contained in:
parent
a6f70a6c78
commit
329148c253
253 changed files with 30486 additions and 0 deletions
56
EnlighterJS/Source/Language/Json.js
Normal file
56
EnlighterJS/Source/Language/Json.js
Normal file
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
---
|
||||
description: JSON Object Highlighting
|
||||
|
||||
license: MIT-style
|
||||
|
||||
authors:
|
||||
- Andi Dittrich
|
||||
|
||||
requires:
|
||||
- Core/1.4.5
|
||||
|
||||
provides: [EnlighterJS.Language.json]
|
||||
...
|
||||
*/
|
||||
EJS.Language.json = new Class({
|
||||
|
||||
Extends: EJS.Language.generic,
|
||||
|
||||
setupLanguage: function()
|
||||
{
|
||||
this.keywords = {
|
||||
values: {
|
||||
csv: "true, false, null",
|
||||
alias: 'kw2'
|
||||
}
|
||||
};
|
||||
|
||||
this.patterns = {
|
||||
'keys': {
|
||||
pattern: /("[^"\\\r\n]+?")\s*?:/gi,
|
||||
alias: 'kw1'
|
||||
},
|
||||
'strings': {
|
||||
pattern: this.common.strings,
|
||||
alias: 'st0'
|
||||
},
|
||||
'brackets': {
|
||||
pattern: this.common.brackets,
|
||||
alias: 'br0'
|
||||
},
|
||||
'numbers': {
|
||||
pattern: /\b((([0-9]+)?\.)?[0-9_]+([e][-+]?[0-9]+)?|0x[A-F0-9]+)\b/gi,
|
||||
alias: 'nu0'
|
||||
},
|
||||
'symbols': {
|
||||
pattern: /,|:/g,
|
||||
alias: 'sy0'
|
||||
}
|
||||
};
|
||||
|
||||
this.delimiters = {
|
||||
|
||||
};
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue