aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexSQL.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-04-01 02:01:28 +0000
committernyamatongwe <unknown>2000-04-01 02:01:28 +0000
commit0e6e05226f69f7bdd5fe4415a43be5be882b414c (patch)
treea4a8d14a669ffe05bef03dc47f76262bc25b2e41 /src/LexSQL.cxx
parentc7b2ff7108860ebc5c8bd56f435ca31b3b4c4065 (diff)
downloadscintilla-mirror-0e6e05226f69f7bdd5fe4415a43be5be882b414c.tar.gz
Fixed warnings from Borland compiler.
Diffstat (limited to 'src/LexSQL.cxx')
-rw-r--r--src/LexSQL.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/LexSQL.cxx b/src/LexSQL.cxx
index 0f5ca5614..900f8ddc2 100644
--- a/src/LexSQL.cxx
+++ b/src/LexSQL.cxx
@@ -44,20 +44,18 @@ static void ColouriseSQLDoc(unsigned int startPos, int length,
bool fold = styler.GetPropSet().GetInt("fold");
int lineCurrent = styler.GetLine(startPos);
int spaceFlags = 0;
- int indentCurrent = 0;
int state = initStyle;
char chPrev = ' ';
char chNext = styler[startPos];
styler.StartSegment(startPos);
unsigned int lengthDoc = startPos + length;
- bool prevCr = false;
for (unsigned int i = startPos; i <= lengthDoc; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
if ((ch == '\r' && chNext != '\n') || (ch == '\n')) {
- indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags);
+ int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags);
int lev = indentCurrent;
if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) {
// Only non whitespace lines can be headers