diff -r a4642baaf829 -r 4d4862461b8d web/wp-includes/js/codepress/languages/generic.js --- a/web/wp-includes/js/codepress/languages/generic.js Tue Feb 02 14:45:47 2010 +0000 +++ b/web/wp-includes/js/codepress/languages/generic.js Tue Feb 02 15:44:16 2010 +0000 @@ -1,25 +1,25 @@ -/* - * CodePress regular expressions for generic syntax highlighting - */ - -// generic languages -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|default|goto|boolean|do|if|private|this|break|double|protected|throw|byte|else|import|public|throws|case|return|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|const|float|while|function|label)\b/g, output : '$1' }, // reserved words - { input : /([\(\){}])/g, output : '$1' }, // special chars; - { 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 = [] +/* + * CodePress regular expressions for generic syntax highlighting + */ + +// generic languages +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|default|goto|boolean|do|if|private|this|break|double|protected|throw|byte|else|import|public|throws|case|return|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|const|float|while|function|label)\b/g, output : '$1' }, // reserved words + { input : /([\(\){}])/g, output : '$1' }, // special chars; + { 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 = []