@@ -73,9 +73,9 @@ window['PR_normalizedHtml']
7373 * @return {string } code as html, but prettier
7474 */
7575 = window [ 'prettyPrintOne' ]
76- /** find all the < pre > and < code > tags in the DOM with class=prettyprint
77- * and prettify them.
78- * @param {Function } opt_whenDone if specified, called when the last entry
76+ /** Find all the { @code < pre>} and { @ code <code>} tags in the DOM with
77+ * { @code class=prettyprint} and prettify them.
78+ * @param {Function? } opt_whenDone if specified, called when the last entry
7979 * has been finished.
8080 */
8181 = window [ 'prettyPrint' ] = void 0 ;
@@ -758,7 +758,7 @@ window['_pr_isIE6'] = function () {
758758 * @param {Array } fallthroughStylePatterns patterns that will be tried in
759759 * order if the shortcut ones fail. May have shortcuts.
760760 *
761- * @return {function (string, number?) : Array.<number|string> } a
761+ * @return {function (Object) } a
762762 * function that takes source code and returns a list of decorations.
763763 */
764764 function createSimpleLexer ( shortcutStylePatterns , fallthroughStylePatterns ) {
@@ -770,7 +770,6 @@ window['_pr_isIE6'] = function () {
770770 var regexKeys = { } ;
771771 for ( var i = 0 , n = allPatterns . length ; i < n ; ++ i ) {
772772 var patternParts = allPatterns [ i ] ;
773- if ( patternParts [ 2 ] ) { console . log ( uneval ( patternParts ) ) ; }
774773 var shortcutChars = patternParts [ 3 ] ;
775774 if ( shortcutChars ) {
776775 for ( var c = shortcutChars . length ; -- c >= 0 ; ) {
@@ -842,8 +841,7 @@ if (patternParts[2]) { console.log(uneval(patternParts)); }
842841 }
843842 }
844843
845- var isEmbedded = style . length >= 5
846- && 'lang-' === style . substring ( 0 , 5 ) ;
844+ isEmbedded = style . length >= 5 && 'lang-' === style . substring ( 0 , 5 ) ;
847845 if ( isEmbedded && ! ( match && match [ 1 ] ) ) {
848846 isEmbedded = false ;
849847 style = PR_SOURCE ;
@@ -898,9 +896,8 @@ if (patternParts[2]) { console.log(uneval(patternParts)); }
898896 * It recognizes C, C++, and shell style comments.
899897 *
900898 * @param {Object } options a set of optional parameters.
901- * @return {function (string) : Array.<string|number> } a
902- * decorator that takes sourceCode as plain text and that returns a
903- * decoration list
899+ * @return {function (Object) } a function that examines the source code
900+ * in the input job and builds the decoration list.
904901 */
905902 function sourceDecorator ( options ) {
906903 var shortcutStylePatterns = [ ] , fallthroughStylePatterns = [ ] ;
@@ -1109,10 +1106,9 @@ if (patternParts[2]) { console.log(uneval(patternParts)); }
11091106 /** Maps language-specific file extensions to handlers. */
11101107 var langHandlerRegistry = { } ;
11111108 /** Register a language handler for the given file extensions.
1112- * @param {function (Object) handler a function from source code to a list of
1113- * decorations. Takes a single argument job which describes the state
1114- * of the computation so that language handlers may be written in a
1115- * continuation passing style. The single parameter has the form
1109+ * @param {function (Object) } handler a function from source code to a list
1110+ * of decorations. Takes a single argument job which describes the
1111+ * state of the computation. The single parameter has the form
11161112 * {@code {
11171113 * source: {string} as plain text.
11181114 * decorations: {Array.<number|string>} an array of style classes
0 commit comments