diff options
author | nyamatongwe <devnull@localhost> | 2009-01-01 01:36:37 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-01-01 01:36:37 +0000 |
commit | 2f6cb0e25c35daf753a07b661482b4be81a6222c (patch) | |
tree | e3ce4c3d8bc377d3c94132e26c9a7cae538e6132 /src/LexFortran.cxx | |
parent | 59ffc74390ea57ec1090d70b947c430867860c41 (diff) | |
download | scintilla-mirror-2f6cb0e25c35daf753a07b661482b4be81a6222c.tar.gz |
Updates to avoid warnings from GCC 4.3. Should not change behaviour.
Diffstat (limited to 'src/LexFortran.cxx')
-rw-r--r-- | src/LexFortran.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LexFortran.cxx b/src/LexFortran.cxx index e66b37ebe..0b3f2777c 100644 --- a/src/LexFortran.cxx +++ b/src/LexFortran.cxx @@ -83,7 +83,7 @@ static void ColouriseFortranDoc(unsigned int startPos, int length, int initStyle // Handle the fix format generically int toLineStart = sc.currentPos - posLineStart; if (isFixFormat && (toLineStart < 6 || toLineStart > 72)) { - if (toLineStart == 0 && (tolower(sc.ch) == 'c' || sc.ch == '*') || sc.ch == '!') { + if ((toLineStart == 0 && (tolower(sc.ch) == 'c' || sc.ch == '*')) || sc.ch == '!') { if (sc.MatchIgnoreCase("cdec$") || sc.MatchIgnoreCase("*dec$") || sc.MatchIgnoreCase("!dec$") || sc.MatchIgnoreCase("cdir$") || sc.MatchIgnoreCase("*dir$") || sc.MatchIgnoreCase("!dir$") || sc.MatchIgnoreCase("cms$") || sc.MatchIgnoreCase("*ms$") || sc.MatchIgnoreCase("!ms$") || @@ -252,7 +252,7 @@ static int classifyFoldPointFortran(const char* s, const char* prevWord, const c lev = 0; else lev = 1; - } else if (strcmp(s, "end") == 0 && chNextNonBlank != '=' + } else if ((strcmp(s, "end") == 0 && chNextNonBlank != '=') || strcmp(s, "endassociate") == 0 || strcmp(s, "endblock") == 0 || strcmp(s, "endblockdata") == 0 || strcmp(s, "endselect") == 0 || strcmp(s, "enddo") == 0 || strcmp(s, "endenum") ==0 |