The R Project SVN R-packages

Rev

Rev 7293 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7293 Rev 7824
Line 789... Line 789...
789
 
789
 
790
			rd_switch_to_buffer(rd_scan_string(NSStringUTF8String([selfstr substringWithRange:textRange])));
790
			rd_switch_to_buffer(rd_scan_string(NSStringUTF8String([selfstr substringWithRange:textRange])));
791
 
791
 
792
			// now loop through all the tokens
792
			// now loop through all the tokens
793
			while ((token = rdlex())) {
793
			while ((token = rdlex())) {
794
				if(hasFoldedItems && (NSInteger)(_foldedImp)(theTextStorage, _foldedSel, yyuoffset) > -1) continue;
794
				if(hasFoldedItems && [theTextStorage foldedAtIndex: yyuoffset] > -1) continue;
795
				switch (token) {
795
				switch (token) {
796
					case RDPT_COMMENT:
796
					case RDPT_COMMENT:
797
					    tokenColor = shColorComment;
797
					    tokenColor = shColorComment;
798
					    break;
798
					    break;
799
					case RDPT_SECTION:
799
					case RDPT_SECTION:
Line 845... Line 845...
845
 
845
 
846
		yy_switch_to_buffer(yy_scan_string(NSStringUTF8String([selfstr substringWithRange:textRange])));
846
		yy_switch_to_buffer(yy_scan_string(NSStringUTF8String([selfstr substringWithRange:textRange])));
847
 
847
 
848
		// now loop through all the tokens
848
		// now loop through all the tokens
849
		while ((token = yylex())) {
849
		while ((token = yylex())) {
850
			if(hasFoldedItems && (NSInteger)(_foldedImp)(theTextStorage, _foldedSel, yyuoffset) > -1) continue;
850
			if(hasFoldedItems && [theTextStorage foldedAtIndex: yyuoffset] > -1) continue;
851
			switch (token) {
851
			switch (token) {
852
				case RPT_SINGLE_QUOTED_TEXT:
852
				case RPT_SINGLE_QUOTED_TEXT:
853
				case RPT_DOUBLE_QUOTED_TEXT:
853
				case RPT_DOUBLE_QUOTED_TEXT:
854
				    tokenColor = shColorString;
854
				    tokenColor = shColorString;
855
				    break;
855
				    break;