/*
* CodePress regular expressions for Java syntax highlighting
*/
// Java
Language.syntax = [
{ input : /\"(.*?)(\"|
|<\/P>)/g, output : '"$1$2'}, // strings double quote
{ input : /\'(.*?)(\'|
|<\/P>)/g, output : '\'$1$2'}, // strings single quote
{ input : /\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/g, output : '$1'}, // reserved words
{ input : /([^:]|^)\/\/(.*?)(
//$2$3'}, // comments //
{ input : /\/\*(.*?)\*\//g, output : '/*$1*/' }// comments /* */
]
Language.snippets = []
Language.complete = [
{ input : '\'',output : '\'$0\'' },
{ input : '"', output : '"$0"' },
{ input : '(', output : '\($0\)' },
{ input : '[', output : '\[$0\]' },
{ input : '{', output : '{\n\t$0\n}' }
]
Language.shortcuts = []