OSDN Git Service

PATCH: [ 981526 ] Don't ignore one-char lines in syntax highlight
authorKimmo Varis <kimmov@gmail.com>
Tue, 29 Jun 2004 10:42:00 +0000 (10:42 +0000)
committerKimmo Varis <kimmov@gmail.com>
Tue, 29 Jun 2004 10:42:00 +0000 (10:42 +0000)
23 files changed:
Src/editlib/asp.cpp
Src/editlib/basic.cpp
Src/editlib/batch.cpp
Src/editlib/cplusplus.cpp
Src/editlib/csharp.cpp
Src/editlib/dcl.cpp
Src/editlib/fortran.cpp
Src/editlib/html.cpp
Src/editlib/ini.cpp
Src/editlib/is.cpp
Src/editlib/java.cpp
Src/editlib/lisp.cpp
Src/editlib/pascal.cpp
Src/editlib/perl.cpp
Src/editlib/php.cpp
Src/editlib/python.cpp
Src/editlib/rexx.cpp
Src/editlib/rsrc.cpp
Src/editlib/siod.cpp
Src/editlib/sql.cpp
Src/editlib/tex.cpp
Src/editlib/xml.cpp
Src/readme.txt

index 994ba17..be4d645 100644 (file)
@@ -534,7 +534,7 @@ DWORD CCrystalTextView::
 ParseLineAsp (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & (COOKIE_EXT_COMMENT|COOKIE_EXT_USER1);
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 1b99974..9106109 100644 (file)
@@ -272,7 +272,7 @@ DWORD CCrystalTextView::
 ParseLineBasic (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 05ee3a1..761f075 100644 (file)
@@ -275,7 +275,7 @@ DWORD CCrystalTextView::
 ParseLineBatch (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 11e6ab0..7ab3303 100644 (file)
@@ -257,7 +257,7 @@ DWORD CCrystalTextView::
 ParseLineC (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 73ed798..411ff61 100644 (file)
@@ -181,7 +181,7 @@ DWORD CCrystalTextView::
 ParseLineCSharp (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index f742d52..5e0b765 100644 (file)
@@ -184,7 +184,7 @@ DWORD CCrystalTextView::
 ParseLineDcl (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 1faeeed..fd985b6 100644 (file)
@@ -298,7 +298,7 @@ DWORD CCrystalTextView::
 ParseLineFortran (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index bd0a072..df82ab9 100644 (file)
@@ -445,7 +445,7 @@ DWORD CCrystalTextView::
 ParseLineHtml (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & (COOKIE_EXT_COMMENT|COOKIE_EXT_USER1);
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 8b27b9a..8e5fae6 100644 (file)
@@ -71,7 +71,7 @@ DWORD CCrystalTextView::
 ParseLineIni (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 70d79be..de706d1 100644 (file)
@@ -490,7 +490,7 @@ DWORD CCrystalTextView::
 ParseLineIS (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index c19547a..35d5f4e 100644 (file)
@@ -143,7 +143,7 @@ DWORD CCrystalTextView::
 ParseLineJava (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 9b0480a..b072f2a 100644 (file)
@@ -319,7 +319,7 @@ DWORD CCrystalTextView::
 ParseLineLisp (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 4ac54d3..00e9046 100644 (file)
@@ -145,7 +145,7 @@ DWORD CCrystalTextView::
 ParseLinePascal (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & (COOKIE_EXT_COMMENT | COOKIE_EXT_COMMENT2);
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index cbe39a9..3db474c 100644 (file)
@@ -315,7 +315,7 @@ DWORD CCrystalTextView::
 ParseLinePerl (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index d5d1113..a42cae5 100644 (file)
@@ -535,7 +535,7 @@ DWORD CCrystalTextView::
 ParseLinePhp (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & (COOKIE_EXT_COMMENT|COOKIE_EXT_USER1);
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 2119601..af7d673 100644 (file)
@@ -233,7 +233,7 @@ DWORD CCrystalTextView::
 ParseLinePython (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 534bb97..624940f 100644 (file)
@@ -171,7 +171,7 @@ DWORD CCrystalTextView::
 ParseLineRexx (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 6914b5c..3d4f274 100644 (file)
@@ -235,7 +235,7 @@ DWORD CCrystalTextView::
 ParseLineRsrc (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 8ab511f..91d376b 100644 (file)
@@ -397,7 +397,7 @@ DWORD CCrystalTextView::
 ParseLineSiod (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index b154707..30d7675 100644 (file)
@@ -131,7 +131,7 @@ DWORD CCrystalTextView::
 ParseLineSql (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 69129c6..c002c05 100644 (file)
@@ -928,7 +928,7 @@ DWORD CCrystalTextView::
 ParseLineTex (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index b68caea..b5218de 100644 (file)
@@ -246,7 +246,7 @@ DWORD CCrystalTextView::
 ParseLineXml (DWORD dwCookie, int nLineIndex, TEXTBLOCK * pBuf, int &nActualItems)
 {
   int nLength = GetLineLength (nLineIndex);
-  if (nLength <= 1)
+  if (nLength == 0)
     return dwCookie & COOKIE_EXT_COMMENT;
 
   LPCTSTR pszChars = GetLineChars (nLineIndex);
index 31bea50..6ede6ed 100644 (file)
@@ -1,6 +1,10 @@
 2004-06-29 Kimmo
  PATCH: [ 981468 ] Properly handle different commentstyles for Pascal
-  Src/editlib/pascal.cpp
+  Src/editlib: pascal.cpp
+ PATCH: [ 981526 ] Don't ignore one-char lines in syntax highlight
+  Src/editlib: asp.cpp basic.cpp batch.cpp cplusplus.cpp csharp.cpp dcl.cpp
+   fortran.cpp html.cpp ini.cpp is.cpp java.cpp lisp.cpp pascal.cpp perl.cpp
+   php.cpp python.cpp rexx.cpp rsrc.cpp siod.cpp sql.cpp tex.cpp xml.cpp
 
 2004-06-28 Laoran
  PATCH: [ 981290 ] Updated Swedish MergeSwedish.rc file