?
Path : /home/admin/public_html/old/media/editors/codemirror/mode/javascript/ |
Current File : /home/admin/public_html/old/media/editors/codemirror/mode/javascript/test.min.js |
!function(){function r(r){test.mode(r,o,Array.prototype.slice.call(arguments,1))}function e(r){test.mode(r,a,Array.prototype.slice.call(arguments,1))}var o=CodeMirror.getMode({indentUnit:2},"javascript");r("locals","[keyword function] [variable foo]([def a], [def b]) { [keyword var] [def c] [operator =] [number 10]; [keyword return] [variable-2 a] [operator +] [variable-2 c] [operator +] [variable d]; }"),r("comma-and-binop","[keyword function](){ [keyword var] [def x] [operator =] [number 1] [operator +] [number 2], [def y]; }"),r("destructuring","([keyword function]([def a], [[[def b], [def c] ]]) {"," [keyword let] {[def d], [property foo]: [def c][operator =][number 10], [def x]} [operator =] [variable foo]([variable-2 a]);"," [[[variable-2 c], [variable y] ]] [operator =] [variable-2 c];","})();"),r("class_body","[keyword class] [variable Foo] {"," [property constructor]() {}"," [property sayName]() {"," [keyword return] [string-2 `foo${][variable foo][string-2 }oo`];"," }","}"),r("class","[keyword class] [variable Point] [keyword extends] [variable SuperThing] {"," [property get] [property prop]() { [keyword return] [number 24]; }"," [property constructor]([def x], [def y]) {"," [keyword super]([string 'something']);"," [keyword this].[property x] [operator =] [variable-2 x];"," }","}"),r("module","[keyword module] [string 'foo'] {"," [keyword export] [keyword let] [def x] [operator =] [number 42];"," [keyword export] [keyword *] [keyword from] [string 'somewhere'];","}"),r("import","[keyword function] [variable foo]() {"," [keyword import] [def $] [keyword from] [string 'jquery'];"," [keyword module] [def crypto] [keyword from] [string 'crypto'];"," [keyword import] { [def encrypt], [def decrypt] } [keyword from] [string 'crypto'];","}"),r("const","[keyword function] [variable f]() {"," [keyword const] [[ [def a], [def b] ]] [operator =] [[ [number 1], [number 2] ]];","}"),r("for/of","[keyword for]([keyword let] [variable of] [keyword of] [variable something]) {}"),r("generator","[keyword function*] [variable repeat]([def n]) {"," [keyword for]([keyword var] [def i] [operator =] [number 0]; [variable-2 i] [operator <] [variable-2 n]; [operator ++][variable-2 i])"," [keyword yield] [variable-2 i];","}"),r("quotedStringAddition","[keyword let] [variable f] [operator =] [variable a] [operator +] [string 'fatarrow'] [operator +] [variable c];"),r("quotedFatArrow","[keyword let] [variable f] [operator =] [variable a] [operator +] [string '=>'] [operator +] [variable c];"),r("fatArrow","[variable array].[property filter]([def a] [operator =>] [variable-2 a] [operator +] [number 1]);","[variable a];","[keyword let] [variable f] [operator =] ([[ [def a], [def b] ]], [def c]) [operator =>] [variable-2 a] [operator +] [variable-2 c];","[variable c];"),r("spread","[keyword function] [variable f]([def a], [meta ...][def b]) {"," [variable something]([variable-2 a], [meta ...][variable-2 b]);","}"),r("comprehension","[keyword function] [variable f]() {"," [[([variable x] [operator +] [number 1]) [keyword for] ([keyword var] [def x] [keyword in] [variable y]) [keyword if] [variable pred]([variable-2 x]) ]];"," ([variable u] [keyword for] ([keyword var] [def u] [keyword of] [variable generateValues]()) [keyword if] ([variable-2 u].[property color] [operator ===] [string 'blue']));","}"),r("quasi","[variable re][string-2 `fofdlakj${][variable x] [operator +] ([variable re][string-2 `foo`]) [operator +] [number 1][string-2 }fdsa`] [operator +] [number 2]"),r("quasi_no_function","[variable x] [operator =] [string-2 `fofdlakj${][variable x] [operator +] [string-2 `foo`] [operator +] [number 1][string-2 }fdsa`] [operator +] [number 2]"),r("indent_statement","[keyword var] [variable x] [operator =] [number 10]","[variable x] [operator +=] [variable y] [operator +]"," [atom Infinity]","[keyword debugger];"),r("indent_if","[keyword if] ([number 1])"," [keyword break];","[keyword else] [keyword if] ([number 2])"," [keyword continue];","[keyword else]"," [number 10];","[keyword if] ([number 1]) {"," [keyword break];","} [keyword else] [keyword if] ([number 2]) {"," [keyword continue];","} [keyword else] {"," [number 10];","}"),r("indent_for","[keyword for] ([keyword var] [variable i] [operator =] [number 0];"," [variable i] [operator <] [number 100];"," [variable i][operator ++])"," [variable doSomething]([variable i]);","[keyword debugger];"),r("indent_c_style","[keyword function] [variable foo]()","{"," [keyword debugger];","}"),r("indent_else","[keyword for] (;;)"," [keyword if] ([variable foo])"," [keyword if] ([variable bar])"," [number 1];"," [keyword else]"," [number 2];"," [keyword else]"," [number 3];"),r("indent_funarg","[variable foo]([number 10000],"," [keyword function]([def a]) {"," [keyword debugger];","};"),r("indent_below_if","[keyword for] (;;)"," [keyword if] ([variable foo])"," [number 1];","[number 2];"),r("multilinestring","[keyword var] [variable x] [operator =] [string 'foo\\]","[string bar'];"),r("scary_regexp","[string-2 /foo[[/]]bar/];"),r("indent_strange_array","[keyword var] [variable x] [operator =] [["," [number 1],,"," [number 2],","]];","[number 10];");var a=CodeMirror.getMode({indentUnit:2},{name:"javascript",jsonld:!0});e("json_ld_keywords","{",' [meta "@context"]: {',' [meta "@base"]: [string "http://example.com"],',' [meta "@vocab"]: [string "http://xmlns.com/foaf/0.1/"],',' [property "likesFlavor"]: {',' [meta "@container"]: [meta "@list"]',' [meta "@reverse"]: [string "@beFavoriteOf"]'," },",' [property "nick"]: { [meta "@container"]: [meta "@set"] },',' [property "nick"]: { [meta "@container"]: [meta "@index"] }'," },",' [meta "@graph"]: [[ {',' [meta "@id"]: [string "http://dbpedia.org/resource/John_Lennon"],',' [property "name"]: [string "John Lennon"],',' [property "modified"]: {',' [meta "@value"]: [string "2010-05-29T14:17:39+02:00"],',' [meta "@type"]: [string "http://www.w3.org/2001/XMLSchema#dateTime"]'," }"," } ]]","}"),e("json_ld_fake","{",' [property "@fake"]: [string "@fake"],',' [property "@contextual"]: [string "@identifier"],',' [property "user@domain.com"]: [string "@graphical"],',' [property "@ID"]: [string "@@ID"]',"}")}();