Home | History | Annotate | Download | only in docs

Lines Matching refs:if

26  * If there's a language not mentioned here, then I don't know it, and don't
27 * know whether it works. If it has a C-like, Bash-like, or XML-like syntax
52 * If set to {@code false}, {@code prettyPrint()} is synchronous.
78 * @param {Function} opt_whenDone if specified, called when the last entry
101 if (w) { set[w] = null; }
108 "break continue do else for if return while ";
131 "goto if import last local my next no our print package redo require " +
233 if (isWordChar(preceder.charAt(0))) {
251 // The language spec requires a new object created even if you don't access
282 if (pos < 0) { return html; }
288 if (end >= 0) {
291 if (num && num.charAt(0) === 'x') {
296 if (!isNaN(codePoint)) {
323 if (!attr.specified) { continue; }
331 if (node.firstChild || !/^(?:br|link|img)$/.test(name)) {
349 if (null === PR_innerHtmlWorks) {
356 if (PR_innerHtmlWorks) {
359 if (isRawContent(node)) {
394 if (!out) { out = []; }
414 if (!out) { return plainText; }
449 if (matches) {
452 if (match.length > 1 && match.charAt(0) === '<') {
453 if (pr_commentPrefix.test(match)) { continue; }
454 if (pr_cdataPrefix.test(match)) {
458 } else if (pr_brPrefix.test(match)) {
464 if (match.indexOf(PR_NOCODE) >= 0 && isNoCodeTag(match)) {
473 if (name2 && name2[2] === name) {
474 if (name2[1] === '/') {
475 if (--depth === 0) { break end_tag_loop; }
481 if (j < n) {
502 /** True if the given tag contains a class attribute with the nocode class. */
525 * Pattern must only match prefixes, and if it matches a prefix and context
532 * Shortcut is an optional string of characters, any of which, if the first
538 * order if the shortcut ones fail. May have shortcuts.
551 if (shortcutChars) {
575 if (patternParts) {
583 if (contextPattern && !contextPattern.test(lastToken)) {
588 if (match) {
595 if (!token) { // make sure that we make progress
604 if (style !== PR_COMMENT && notWs.test(token)) { lastToken = token; }
632 if (decorations[i + 1] === PR_SOURCE) {
640 if (match) {
669 if (style === PR_TAG) {
700 if (options.tripleQuotedStrings) {
705 } else if (options.multiLineStrings) {
719 if (options.hashComments) {
722 if (options.cStyleComments) {
727 if (options.regexLiterals) {
778 if (style === PR_PLAIN) {
786 if (subStyle === PR_PLAIN) {
790 if (token === '.') {
792 } else if (token in keywords) {
794 } else if (/^@?[A-Z][A-Z$]*[a-z][A-Za-z$]*$/.test(token)) {
836 if (style === PR_SOURCE) {
861 if (style === PR_ATTRIB_NAME) {
865 } else if (style === PR_ATTRIB_VALUE) {
866 if (nextValueIsSource) {
878 if (quoted) {
893 if (quoted) {
930 // embedded source section, i.e. is an open <script> tag. If it is, find
976 if (sourceIdx > outputIdx) {
977 if (openDecoration && openDecoration !== currentDecoration) {
982 if (!openDecoration && currentDecoration) {
1007 // Determine if we're going to consume a tag this time around. Otherwise
1010 if (tagPos < extractedTags.length) {
1011 if (decPos < decorations.length) {
1023 if (outputTag) {
1025 if (openDecoration) {
1032 } else if (decPos < decorations.length) {
1041 if (openDecoration) {
1058 if (!langHandlerRegistry.hasOwnProperty(ext)) {
1060 } else if ('console' in window) {
1125 if (!langHandlerRegistry.hasOwnProperty(opt_langExtension)) {
1126 // Treat it as markup if the first non whitespace character is a < and
1143 if ('console' in window) {
1177 if (cs.className && cs.className.indexOf('prettyprint') >= 0) {
1178 // If the classes includes a language extensions, use it.
1184 if (langExtension) { langExtension = langExtension[1]; }
1189 if ((p.tagName === 'pre' || p.tagName === 'code' ||
1196 if (!nested) {
1206 if (!isRawContent(cs)) {
1216 if (a.specified) {
1218 if (aname === 'class') {
1237 if (isIE6 && cs.tagName === 'PRE') {
1248 if (k < elements.length) {
1251 } else if (opt_whenDone) {