The R Project SVN R-packages

Rev

Rev 5805 | Rev 5910 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5805 Rev 5814
Line 551... Line 551...
551
	isSyntaxHighlighting = YES;
551
	isSyntaxHighlighting = YES;
552
 
552
 
553
	NSString *selfstr    = [theTextStorage string];
553
	NSString *selfstr    = [theTextStorage string];
554
	NSInteger strlength  = (NSInteger)[selfstr length];
554
	NSInteger strlength  = (NSInteger)[selfstr length];
555
 
555
 
-
 
556
 
-
 
557
	// do not highlight if text larger than 10MB
-
 
558
	if(strlength > 10000000) return;
-
 
559
 
556
	// == Do highlighting partly (max R_SYNTAX_HILITE_BIAS*2 around visibleRange
560
	// == Do highlighting partly (max R_SYNTAX_HILITE_BIAS*2 around visibleRange
557
	// by considering entire lines).
561
	// by considering entire lines).
558
 
562
 
559
	// Get the text range currently displayed in the view port
563
	// Get the text range currently displayed in the view port
560
	NSRect visibleRect = [[[self enclosingScrollView] contentView] documentVisibleRect];
564
	NSRect visibleRect = [[[self enclosingScrollView] contentView] documentVisibleRect];