if(invalid) { if(paintInvalid) { styles[Token.INVALID].setGraphicsFlags(gfx,defaultFont); gfx.drawString("~",0,y + fm.getHeight()); } } else
if(!invalid)
	private void paintLine(Graphics gfx, TokenMarker tokenMarker,		int line, int x)	{		Font defaultFont = getFont();		Color defaultColor = getForeground();		int y = textArea.lineToY(line);		boolean invalid = (!textArea.getBuffer().isLoaded() || line < 0			|| line >= textArea.getLineCount());		paintHighlight(gfx,line,y,invalid);		if(invalid)		{			if(paintInvalid)			{				styles[Token.INVALID].setGraphicsFlags(gfx,defaultFont);				gfx.drawString("~",0,y + fm.getHeight());			}		}		else		{			gfx.setFont(defaultFont);			gfx.setColor(defaultColor);			y += fm.getHeight();			textArea.getLineText(line,textArea.lineSegment);			x = SyntaxUtilities.paintSyntaxLine(textArea.lineSegment,				tokenMarker.markTokens(textArea.lineSegment,line).firstToken,				styles,this,gfx,getBackground(),x,y);			if(eolMarkers)			{				gfx.setFont(defaultFont);				gfx.setColor(eolMarkerColor);				gfx.drawString(".",x,y);			}		}	}