Lines Matching refs:if
26 "explicit extern false float for friend goto if inline int long mutable " +
33 "abstract default goto package synchronized boolean do if private this " +
40 "for from global if import in is lambda not or pass print raise return " +
45 "finally float for function goto if implements import in instanceof int " +
52 "if then do else fi end");
58 if (kw[i]) { PR_keywords[kw[i]] = true; }
96 if (undefined === style) { throw new Error('BAD'); }
97 if ('number' != typeof(end)) { throw new Error('BAD'); }
116 if (undefined === style) { throw new Error('BAD'); }
139 if ('&' == ch) {
141 if (semi >= 0 && semi < next + 4) {
144 if ('lt' == entityName) {
146 } else if ('gt' == entityName) {
148 } else if ('quot' == entityName) {
150 } else if ('apos' == entityName) {
152 } else if ('amp' == entityName) {
206 if (len < prefix.length) { return false; }
208 if (prefix.charAt(i) != chars[i]) { return false; }
235 if ('<' == ch) { state = 1; }
239 if ('/' == ch) { state = 2; }
240 else if (PR_isWordChar(ch)) { state = 3; }
241 else if ('<' == ch) { state = 1; }
245 if (PR_isWordChar(ch)) { state = 3; }
246 else if ('<' == ch) { state = 1; }
250 if ('>' == ch) {
251 if (pos > start) {
262 if (s.length > start) {
276 if (PR_PLAIN != chunk.style) {
287 if ('&' == ch) { state = 1; }
290 if ('#' == ch || PR_isWordChar(ch)) {
298 if (';' == ch) {
299 if (start > pos) {
310 if (s.length > pos) {
342 if (remainingInChunk > 0) {
349 if (ci < chunks.length) { chunk = chunks[ci++]; }
355 if (tokLen) {
399 // if non null, the tag prefix that we need to see to break out.
405 if (PR_PLAIN != chunk.style) {
421 if ('<' == ch) { state = 1; }
425 if ('/' == ch) { // only consider close tags if we're in script/style
427 } else if (null == endScriptTag) {
428 if ('!' == ch) {
430 } else if (PR_isWordChar(ch)) {
432 } else if ('?' == ch) {
434 } else if ('%' == ch) {
436 } else if ('<' != ch) {
439 } else if ('<' != ch) {
444 if ('-' == ch) {
446 } else if (PR_isWordChar(ch)) {
448 } else if ('<' == ch) {
455 if ('>' == ch) {
461 if ('-' == ch) { state = 5; }
464 if ('-' == ch) { state = 6; }
467 if ('>' == ch) {
470 } else if ('-' == ch) {
477 if (PR_isWordChar(ch)) {
479 } else if ('<' == ch) {
486 if ('>' == ch) {
492 if ('?' == ch) { state = 10; }
495 if ('>' == ch) {
498 } else if ('?' != ch) {
503 if ('%' == ch) { state = 12; }
506 if ('>' == ch) {
509 } else if ('%' != ch) {
515 if (tokenCharsI < tokenChars.length) {
518 if (1 == state) { tokenStart = k + i; }
520 if (tokenStyle != null) {
521 if (null != tokenStyle) {
522 if (endScriptTag) {
523 if
527 if (PR_prefixMatch(tokenChars, tokenCharsI, 'script')) {
529 } else if (PR_prefixMatch(tokenChars, tokenCharsI, 'style')) {
531 } else if (PR_prefixMatch(tokenChars, tokenCharsI, 'xmp')) {
535 // disallow the tag if endScriptTag is set and this was not an open
537 if (endScriptTag && tokenCharsI && '/' == tokenChars[0]) {
541 if (null != tokenStyle) {
570 if (PR_PLAIN == chunk.style) {
573 if (0 == state) {
574 if (ch == '"' || ch == '\'' || ch == '`') {
578 } else if (ch == '/') {
580 } else if (ch == '#') {
584 } else if (1 == state) {
585 if (ch == delim) {
588 } else if (ch == '\\') {
591 } else if (2 == state) {
593 } else if (3 == state) {
594 if (ch == '/') {
597 } else if (ch == '*') {
606 } else if (4 == state) {
607 if (ch == '\r' || ch == '\n') {
611 } else if (5 == state) {
612 if (ch == '*') {
615 } else if (6 == state) {
616 if (ch == '/') {
619 } else if (ch != '*') {
641 // if set to -1 then it will cause a reentry to state 0 without consuming
645 if (i == s.length) {
651 if (PR_isIdentifierStart(ch)) {
653 } else if (PR_isDigitChar(ch)) {
655 } else if (!PR_isSpaceChar(ch)) {
658 if (nstate && pos < i) {
665 if (!PR_isIdentifierPart(ch)) {
676 if (!(PR_isDigitChar(ch) || PR_isWordChar(ch) || ch == '_')) {
681 if (PR_isIdentifierStart(ch) || PR_isDigitChar(ch) ||
689 if (nstate != state) {
690 if (nstate < 0) {
691 if (i > pos) {
695 if (PR_isIdentifierStart(ch0)) {
696 if (PR_keywords[t]) {
699 else if (ch0 == '@') {
708 if (ch0 >= 'A' && ch0 <= 'Z') {
711 if (ch1 >= 'a' && ch1 <= 'z') {
716 if (!isType && t.length >= 2 &&
723 } else if (PR_isDigitChar(ch0)) {
725 } else if (!PR_isSpaceChar(ch0)) {
735 if (nstate == -1) {
751 if (!(chunks && chunks.length)) { return chunks; }
769 if (PR_TAG == tok.style) {
779 if (ch == '>') {
780 if (PR_TAG != stateStyle) {
787 if ('<' == ch) { state = 1; }
790 if (PR_isSpaceChar(ch)) { state = 2; }
793 if (!PR_isSpaceChar(ch)) {
800 if ('=' == ch) {
804 } else if (PR_isSpaceChar(ch)) {
811 if ('=' == ch) {
813 } else if (!PR_isSpaceChar(ch)) {
820 if ('"' == ch || '\'' == ch) {
825 } else if (!PR_isSpaceChar(ch)) {
832 if (ch == delim) {
839 if (PR_isSpaceChar(ch)) {
847 if (emitEnd) {
848 if (emitEnd > start) {
857 if (s.length > start) {
861 if (tok.style) {
886 if (null == tok.style) {
893 if (null == endScriptTag) {
894 if (PR_SOURCE == tok.style) {
896 if ('<' == decodeHelper.decode(s, 0)) {
898 if ('%' == decodeHelper.ch || '?' == decodeHelper.ch) {
905 } else if (PR_TAG == tok.style) {
906 if ('<' == decodeHelper.decode(s, 0) &&
912 if (PR_startsWith(tagContent, 'script') ||
921 if (null != endScriptTag) {
923 if (PR_SOURCE == tok.style) {
924 if (endScriptTag == '%' || endScriptTag == '?') {
926 if (pos >= 0 && '>' == decodeHelper.decode(s, pos + 1) &&
932 if (null == sourceChunks) { sourceChunks = new Array(); }
934 } else if (PR_PLAIN == tok.style) {
935 if (null == sourceChunks) { sourceChunks = new Array(); }
937 } else if (PR_TAG == tok.style) {
938 // if it starts with </ then it must be the end tag.
939 if ('<' == decodeHelper.decode(tok.token, 0) &&
947 if (sourceChunks) {
954 if (endTok) {
955 if (sourceChunks) {
981 if (PR_PLAIN = tokens[i].style) {
987 if (PR_PLAIN = tokens[i].style) {
992 if (null == firstPlain) { return tokens; }
997 if ('"' != fc && '\'' != fc) {
1004 if (lpos < 0) { lpos = ls.length - 1; }
1006 if (lc != fc || decodeHelper.next != ls.length) {
1016 if (lastPlain == firstPlain) {
1023 if (lc) {
1029 if (lc) {
1052 if (PR_TAG == tok.style) {
1053 if (inSource) {
1056 if (sourceChunks) {
1066 } else if (name && tok.token.indexOf('=') >= 0) {
1068 if (PR_startsWith(nameLower, 'on') || 'style' == nameLower) {
1074 } else if (PR_ATTRIB_NAME == tok.style) {
1076 } else if (PR_ATTRIB_VALUE == tok.style) {
1077 if (inSource) {
1078 if (null == sourceChunks) { sourceChunks = new Array(); }
1083 if (sourceChunks) {
1120 if (PR_PLAIN == s) {
1157 // embedded source section, i.e. is an open <script> tag. If it is,
1175 // treat it as markup if the first non whitespace character is a < and the
1179 if (PR_PLAIN == chunks[i].style) {
1180 if (PR_startsWith(PR_trim(chunks[i].token), '<')) {
1182 if (PR_PLAIN == chunks[j].style) {
1206 if (t.style != lastStyle) {
1207 if (lastStyle != null) {
1210 if (t.style != null) {
1216 if (null != t.style) {
1225 if (lastStyle != null) {
1260 if (cs.className && cs.className.indexOf('prettyprint') >= 0) {
1265 if ((p.tagName == 'pre' || p.tagName == 'code' ||
1272 if (!nested) {
1278 if (isRawContent) {
1286 if (!isRawContent) {
1296 if (a.specified) {
1307 if (k < elements.length) {