{ int caretLine = getCaretLine(); updateBracketHighlight(caretLine,getCaretPosition() - getLineStartOffset(caretLine)); }
updateBracketHighlight();  documentChanged(evt);
		public void removeUpdate(DocumentEvent evt)		{			documentChanged(evt);			if(!buffer.isLoaded())				return;			int offset = evt.getOffset();			int length = evt.getLength();			int newStart;			int newEnd;			boolean change = false;			if(selectionStart > offset)			{				change = true;				if(selectionStart > offset + length)					newStart = selectionStart - length;				else					newStart = offset;			}			else				newStart = selectionStart;			if(selectionEnd > offset)			{				change = true;				if(selectionEnd > offset + length)					newEnd = selectionEnd - length;				else					newEnd = offset;			}			else				newEnd = selectionEnd;			if(change)				select(newStart,newEnd,false);			else			{				int caretLine = getCaretLine();				updateBracketHighlight(caretLine,getCaretPosition()					- getLineStartOffset(caretLine));			}		}