Lines Matching refs:state

552   var state = 0;  // FSM state variable
584 switch (state) {
586 if ('<' == ch) { state = 1; }
587 if (ch.match(/[\r\n]/)) { state = 13; }
592 state = 7;
595 state = 2;
597 state = 8;
599 state = 9;
601 state = 11;
603 state = 0;
606 state = 0;
611 state = 4;
613 state = 3;
615 state = 1;
617 state = 0;
622 state = 0;
627 if ('-' == ch) { state = 5; }
630 if ('-' == ch) { state = 6; }
634 state = 0;
637 state = 6;
639 state = 4;
644 state = 8;
646 state = 1;
648 state = 0;
653 state = 0;
658 if ('?' == ch) { state = 10; }
662 state = 0;
665 state = 9;
669 if ('%' == ch) { state = 12; }
673 state = 0;
676 state = 11;
682 state = 0;
692 if (1 == state || 13 == state) { tokenStart = k + i; }
742 var state = 0; // FSM state variable
759 if (0 == state) {
762 state = 1;
765 state = 3;
767 state = 4;
770 } else if (1 == state) {
772 state = 0;
775 state = 2;
777 } else if (2 == state) {
778 state = 1;
779 } else if (3 == state) {
781 state = 4;
784 state = 5;
792 state = 1;
796 state = 0;
803 } else if (4 == state) {
805 state = 0;
808 } else if (5 == state) {
810 state = 6;
812 } else if (6 == state) {
814 state = 0;
818 state = 5;
825 if (3 > state || state > 6) {
838 switch (state) {
860 var state = 0;
877 var nstate = state;
879 switch (state) {
880 case 0: // whitespace state
896 case 1: // identifier state
901 case 2: // number literal state
912 case 3: // punctuation state
921 if (nstate != state) {
974 state = 0;
982 state = nstate;
1004 var state = 0;
1026 switch (state) {
1028 if ('<' == ch) { state = 1; }
1031 if (PR_isSpaceChar(ch)) { state = 2; }
1037 state = 3;
1044 state = 5;
1048 state = 4;
1053 state = 5;
1057 state = 3;
1064 state = 6;
1069 state = 7;
1076 state = 2;
1083 state = 2;
1103 state = 0;