OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8802300
)
CrystalEdit/parsers: Remove unused variables
author
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sun, 8 Nov 2020 10:59:22 +0000
(19:59 +0900)
committer
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sun, 8 Nov 2020 10:59:22 +0000
(19:59 +0900)
18 files changed:
Externals/crystaledit/editlib/parsers/basic.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/dcl.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/fortran.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/lisp.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/pascal.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/perl.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/po.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/powershell.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/python.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/rexx.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/ruby.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/sgml.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/sh.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/siod.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/sql.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/tcl.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/tex.cpp
patch
|
blob
|
history
Externals/crystaledit/editlib/parsers/xml.cpp
patch
|
blob
|
history
diff --git
a/Externals/crystaledit/editlib/parsers/basic.cpp
b/Externals/crystaledit/editlib/parsers/basic.cpp
index
a600093
..
f345b35
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/basic.cpp
+++ b/
Externals/crystaledit/editlib/parsers/basic.cpp
@@
-352,7
+352,6
@@
CrystalLineParser::ParseLineBasic (unsigned dwCookie, const TCHAR *pszChars, int
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-439,12
+438,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/dcl.cpp
b/Externals/crystaledit/editlib/parsers/dcl.cpp
index
94b79b9
..
5fe8f3e
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/dcl.cpp
+++ b/
Externals/crystaledit/editlib/parsers/dcl.cpp
@@
-129,7
+129,6
@@
CrystalLineParser::ParseLineDcl (unsigned dwCookie, const TCHAR *pszChars, int n
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
const TCHAR *pszCommentBegin = nullptr;
const TCHAR *pszCommentEnd = nullptr;
bool bRedefineBlock = true;
const TCHAR *pszCommentBegin = nullptr;
const TCHAR *pszCommentEnd = nullptr;
bool bRedefineBlock = true;
@@
-256,12
+255,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/fortran.cpp
b/Externals/crystaledit/editlib/parsers/fortran.cpp
index
bec0521
..
dfd0fbe
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/fortran.cpp
+++ b/
Externals/crystaledit/editlib/parsers/fortran.cpp
@@
-245,7
+245,6
@@
CrystalLineParser::ParseLineFortran (unsigned dwCookie, const TCHAR *pszChars, i
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-351,12
+350,6
@@
out:
}
}
}
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/lisp.cpp
b/Externals/crystaledit/editlib/parsers/lisp.cpp
index
207348d
..
8995eb1
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/lisp.cpp
+++ b/
Externals/crystaledit/editlib/parsers/lisp.cpp
@@
-266,7
+266,6
@@
CrystalLineParser::ParseLineLisp (unsigned dwCookie, const TCHAR *pszChars, int
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
const TCHAR *pszCommentBegin = nullptr;
const TCHAR *pszCommentEnd = nullptr;
bool bRedefineBlock = true;
const TCHAR *pszCommentBegin = nullptr;
const TCHAR *pszCommentEnd = nullptr;
bool bRedefineBlock = true;
@@
-395,12
+394,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/pascal.cpp
b/Externals/crystaledit/editlib/parsers/pascal.cpp
index
7a6ba84
..
7799f57
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/pascal.cpp
+++ b/
Externals/crystaledit/editlib/parsers/pascal.cpp
@@
-118,7
+118,6
@@
CrystalLineParser::ParseLinePascal (unsigned dwCookie, const TCHAR *pszChars, in
if (nLength == 0)
return dwCookie & (COOKIE_EXT_COMMENT | COOKIE_EXT_COMMENT2);
if (nLength == 0)
return dwCookie & (COOKIE_EXT_COMMENT | COOKIE_EXT_COMMENT2);
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-260,12
+259,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/perl.cpp
b/Externals/crystaledit/editlib/parsers/perl.cpp
index
d1ea2d2
..
3ea2505
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/perl.cpp
+++ b/
Externals/crystaledit/editlib/parsers/perl.cpp
@@
-262,7
+262,6
@@
CrystalLineParser::ParseLinePerl (unsigned dwCookie, const TCHAR *pszChars, int
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-368,12
+367,6
@@
out:
}
}
}
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/po.cpp
b/Externals/crystaledit/editlib/parsers/po.cpp
index
bc9423a
..
06a578a
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/po.cpp
+++ b/
Externals/crystaledit/editlib/parsers/po.cpp
@@
-58,7
+58,6
@@
CrystalLineParser::ParseLinePo (unsigned dwCookie, const TCHAR *pszChars, int nL
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-164,12
+163,6
@@
out:
}
}
}
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/powershell.cpp
b/Externals/crystaledit/editlib/parsers/powershell.cpp
index
583831a
..
0c229ba
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/powershell.cpp
+++ b/
Externals/crystaledit/editlib/parsers/powershell.cpp
@@
-347,7
+347,6
@@
CrystalLineParser::ParseLinePowerShell (unsigned dwCookie, const TCHAR *pszChars
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-479,12
+478,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/python.cpp
b/Externals/crystaledit/editlib/parsers/python.cpp
index
8cf4ba0
..
8865f19
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/python.cpp
+++ b/
Externals/crystaledit/editlib/parsers/python.cpp
@@
-187,7
+187,6
@@
CrystalLineParser::ParseLinePython (unsigned dwCookie, const TCHAR *pszChars, in
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-293,12
+292,6
@@
out:
}
}
}
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/rexx.cpp
b/Externals/crystaledit/editlib/parsers/rexx.cpp
index
acaa207
..
0c1f130
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/rexx.cpp
+++ b/
Externals/crystaledit/editlib/parsers/rexx.cpp
@@
-117,7
+117,6
@@
CrystalLineParser::ParseLineRexx (unsigned dwCookie, const TCHAR *pszChars, int
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
const TCHAR *pszCommentBegin = nullptr;
const TCHAR *pszCommentEnd = nullptr;
bool bRedefineBlock = true;
const TCHAR *pszCommentBegin = nullptr;
const TCHAR *pszCommentEnd = nullptr;
bool bRedefineBlock = true;
@@
-244,12
+243,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/ruby.cpp
b/Externals/crystaledit/editlib/parsers/ruby.cpp
index
fe4d50b
..
85c200d
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/ruby.cpp
+++ b/
Externals/crystaledit/editlib/parsers/ruby.cpp
@@
-138,7
+138,6
@@
CrystalLineParser::ParseLineRuby(unsigned dwCookie, const TCHAR *pszChars, int n
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-268,12
+267,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/sgml.cpp
b/Externals/crystaledit/editlib/parsers/sgml.cpp
index
ce3fee1
..
aacc83d
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/sgml.cpp
+++ b/
Externals/crystaledit/editlib/parsers/sgml.cpp
@@
-109,7
+109,6
@@
CrystalLineParser::ParseLineSgml (unsigned dwCookie, const TCHAR *pszChars, int
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-242,12
+241,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/sh.cpp
b/Externals/crystaledit/editlib/parsers/sh.cpp
index
88ad296
..
bb96789
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/sh.cpp
+++ b/
Externals/crystaledit/editlib/parsers/sh.cpp
@@
-86,7
+86,6
@@
CrystalLineParser::ParseLineSh (unsigned dwCookie, const TCHAR *pszChars, int nL
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-192,12
+191,6
@@
out:
}
}
}
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/siod.cpp
b/Externals/crystaledit/editlib/parsers/siod.cpp
index
43be29a
..
d6e6d94
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/siod.cpp
+++ b/
Externals/crystaledit/editlib/parsers/siod.cpp
@@
-342,7
+342,6
@@
CrystalLineParser::ParseLineSiod (unsigned dwCookie, const TCHAR *pszChars, int
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
const TCHAR *pszCommentBegin = nullptr;
const TCHAR *pszCommentEnd = nullptr;
bool bRedefineBlock = true;
const TCHAR *pszCommentBegin = nullptr;
const TCHAR *pszCommentEnd = nullptr;
bool bRedefineBlock = true;
@@
-471,12
+470,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/sql.cpp
b/Externals/crystaledit/editlib/parsers/sql.cpp
index
101daae
..
65366d0
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/sql.cpp
+++ b/
Externals/crystaledit/editlib/parsers/sql.cpp
@@
-77,7
+77,6
@@
CrystalLineParser::ParseLineSql (unsigned dwCookie, const TCHAR *pszChars, int n
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
const TCHAR *pszCommentBegin = nullptr;
const TCHAR *pszCommentEnd = nullptr;
bool bRedefineBlock = true;
const TCHAR *pszCommentBegin = nullptr;
const TCHAR *pszCommentEnd = nullptr;
bool bRedefineBlock = true;
@@
-204,12
+203,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/tcl.cpp
b/Externals/crystaledit/editlib/parsers/tcl.cpp
index
56b8099
..
a5ea147
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/tcl.cpp
+++ b/
Externals/crystaledit/editlib/parsers/tcl.cpp
@@
-54,7
+54,6
@@
CrystalLineParser::ParseLineTcl (unsigned dwCookie, const TCHAR *pszChars, int n
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-160,12
+159,6
@@
out:
}
}
}
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/tex.cpp
b/Externals/crystaledit/editlib/parsers/tex.cpp
index
aeb1434
..
23374d8
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/tex.cpp
+++ b/
Externals/crystaledit/editlib/parsers/tex.cpp
@@
-862,7
+862,6
@@
CrystalLineParser::ParseLineTex (unsigned dwCookie, const TCHAR *pszChars, int n
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-968,12
+967,6
@@
out:
}
}
}
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
diff --git
a/Externals/crystaledit/editlib/parsers/xml.cpp
b/Externals/crystaledit/editlib/parsers/xml.cpp
index
e1bb480
..
e98fc78
100644
(file)
--- a/
Externals/crystaledit/editlib/parsers/xml.cpp
+++ b/
Externals/crystaledit/editlib/parsers/xml.cpp
@@
-78,7
+78,6
@@
CrystalLineParser::ParseLineXml (unsigned dwCookie, const TCHAR *pszChars, int n
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
if (nLength == 0)
return dwCookie & COOKIE_EXT_COMMENT;
- bool bFirstChar = (dwCookie & ~COOKIE_EXT_COMMENT) == 0;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
bool bRedefineBlock = true;
bool bDecIndex = false;
int nIdentBegin = -1;
@@
-211,12
+210,6
@@
out:
continue;
}
continue;
}
- if (bFirstChar)
- {
- if (!xisspace (pszChars[I]))
- bFirstChar = false;
- }
-
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop
if (pBuf == nullptr)
continue; // We don't need to extract keywords,
// for faster parsing skip the rest of loop