| 1990 | } |
| 1991 | |
| 1992 | int Document::ExtendStyleRange(int pos, int delta, bool singleLine) { |
| 1993 | int sStart = cb.StyleAt(pos); |
| 1994 | if (delta < 0) { |
| 1995 | while (pos > 0 && (cb.StyleAt(pos) == sStart) && (!singleLine || !IsLineEndChar(cb.CharAt(pos)))) |
| 1996 | pos--; |
| 1997 | pos++; |
| 1998 | } else { |
| 1999 | while (pos < (Length()) && (cb.StyleAt(pos) == sStart) && (!singleLine || !IsLineEndChar(cb.CharAt(pos)))) |
| 2000 | pos++; |
| 2001 | } |
| 2002 | return pos; |
| 2003 | } |
| 2004 | |
| 2005 | static char BraceOpposite(char ch) { |
| 2006 | switch (ch) { |
no test coverage detected