diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/highlight/languages/pygments/javascript.js | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2 |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/highlight/languages/pygments/javascript.js')
-rw-r--r-- | includes/js/dojox/highlight/languages/pygments/javascript.js | 152 |
1 files changed, 0 insertions, 152 deletions
diff --git a/includes/js/dojox/highlight/languages/pygments/javascript.js b/includes/js/dojox/highlight/languages/pygments/javascript.js deleted file mode 100644 index d6c0a6b..0000000 --- a/includes/js/dojox/highlight/languages/pygments/javascript.js +++ /dev/null @@ -1,152 +0,0 @@ -if(!dojo._hasResource["dojox.highlight.languages.pygments.javascript"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.highlight.languages.pygments.javascript"] = true; -dojo.provide("dojox.highlight.languages.pygments.javascript"); - -dojo.require("dojox.highlight._base"); - -(function(){ - var dh = dojox.highlight, dhc = dh.constants; - dh.languages.javascript = { - defaultMode: { - lexems: ["\\b[a-zA-Z]+"], - keywords: { - "keyword": { - "for": 1, "in": 1, "while": 1, "do": 1, "break": 1, "return": 1, - "continue": 1, "if": 1, "else": 1, "throw": 1, "try": 1, - "catch": 1, "var": 1, "with": 1, "const": 1, "label": 1, - "function": 1, "new": 1, "typeof": 1, "instanceof": 1 - }, - "keyword constant": { - "true": 1, "false": 1, "null": 1, "NaN": 1, "Infinity": 1, "undefined": 1 - }, - "name builtin": { - "Array": 1, "Boolean": 1, "Date": 1, "Error": 1, "Function": 1, "Math": 1, - "netscape": 1, "Number": 1, "Object": 1, "Packages": 1, "RegExp": 1, - "String": 1, "sun": 1, "decodeURI": 1, "decodeURIComponent": 1, - "encodeURI": 1, "encodeURIComponent": 1, "Error": 1, "eval": 1, - "isFinite": 1, "isNaN": 1, "parseFloat": 1, "parseInt": 1, "document": 1, - "window": 1 - }, - "name builtin pseudo": { - "this": 1 - } - }, - contains: [ - "comment single", "comment multiline", - "number integer", "number oct", "number hex", "number float", - "string single", "string double", "string regex", - "operator", - "punctuation", - //"name variable", - "_function" - ] - }, - modes: [ - // comments - { - className: "comment single", - begin: "//", end: "$", - relevance: 0 - }, - { - className: "comment multiline", - begin: "/\\*", end: "\\*/" - }, - - // numbers - { - className: "number integer", - begin: "0|([1-9][0-9]*)", end: "^", - relevance: 0 - }, - { - className: "number oct", - begin: "0[0-9]+", end: "^", - relevance: 0 - }, - { - className: "number hex", - begin: "0x[0-9a-fA-F]+", end: "^", - relevance: 0 - }, - { - className: "number float", - begin: "([1-9][0-9]*\\.[0-9]*([eE][\\+-]?[0-9]+)?)|(\\.[0-9]+([eE][\\+-]?[0-9]+)?)|([0-9]+[eE][\\+-]?[0-9]+)", end: "^", - relevance: 0 - }, - - // strings - { - className: "string single", - begin: "'", end: "'", - illegal: "\\n", - contains: ["string escape"], - relevance: 0 - }, - { - className: "string double", - begin: '"', - end: '"', - illegal: "\\n", - contains: ["string escape"], - relevance: 0 - }, - { - className: "string escape", - begin: "\\\\.", end: "^", - relevance: 0 - }, - { - className: "string regex", - begin: "/.*?[^\\\\/]/[gim]*", end: "^" - }, - - // operators - { - className: "operator", - begin: "\\|\\||&&|\\+\\+|--|-=|\\+=|/=|\\*=|==|[-\\+\\*/=\\?:~\\^]", end: "^", - relevance: 0 - }, - - // punctuations - { - className: "punctuation", - begin: "[{}\\(\\)\\[\\]\\.;]", end: "^", - relevance: 0 - }, - - // functions - { - className: "_function", - begin: "function\\b", end: "{", - lexems: [dhc.UNDERSCORE_IDENT_RE], - keywords: { - keyword: { - "function": 1 - } - }, - contains: ["name function", "_params"], - relevance: 5 - }, - { - className: "name function", - begin: dhc.UNDERSCORE_IDENT_RE, end: '^' - }, - { - className: "_params", - begin: "\\(", end: "\\)", - contains: ["comment single", "comment multiline"] - } - /* - // names - { - className: "name variable", - begin: "\\b[$a-zA-Z_][$a-zA-Z0-9_]*", end: "^", - relevance: 0 - } - */ - ] - }; -})(); - -} |