private BraceInfo GetCurrentBraceInfo() { // check if current character or character at left is a brace an return it's position int position = _scintillaControl.CurrentPosition; if (position > 0) { BraceInfo braceInfo = GetBraceInfo(position - 1); if (braceInfo != null) { return(braceInfo); } } if (position != -1) { return(GetBraceInfo(position)); } return(null); }