jquery.syntax.brush.java.js 1.18 KB
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
Syntax.register("java",function(a){a.push(["this","true","false","null"],{klass:"constant"});a.push("void byte short int long float double boolean char".split(" "),{klass:"type"});a.push("abstract continue for switch assert default goto synchronized do if break implements throw else import throws case enum return transient catch extends try final interface static class finally strictfp volatile const native super while".split(" "),{klass:"keyword"});a.push("++ -- ++ -- + - ~ ! * / % + - << >> >>> < > <= >= == != & ^ | && || ? = += -= *= /= %= &= ^= |= <<= >>= >>>= instanceof new delete".split(" "),
{klass:"operator"});a.push(["private","protected","public","package"],{klass:"access"});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.cStyleFunction);a.processes["function"]=Syntax.lib.webLinkProcess('java "Developer Documentation"',
!0)});