diff options
author | nyamatongwe <unknown> | 2011-02-17 13:07:28 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-02-17 13:07:28 +1100 |
commit | 76e0484821dd99765b597a9725daf7994781a77b (patch) | |
tree | 4cb2690cdab50701b82842b6d55b4a5408351d44 | |
parent | d482c6c96e034da056be8138f0b96a81ea4d539d (diff) | |
download | scintilla-mirror-76e0484821dd99765b597a9725daf7994781a77b.tar.gz |
Folding of "procedure". Feature #3184356.
Only create an end fold for "module procedure", not just "procedure".
-rw-r--r-- | lexers/LexFortran.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexFortran.cxx b/lexers/LexFortran.cxx index 096f5994f..47e46e82f 100644 --- a/lexers/LexFortran.cxx +++ b/lexers/LexFortran.cxx @@ -266,7 +266,7 @@ static int classifyFoldPointFortran(const char* s, const char* prevWord, const c || strcmp(s, "endmodule") == 0 || strcmp(s, "endprogram") == 0 || strcmp(s, "endsubroutine") == 0 || strcmp(s, "endtype") == 0 || strcmp(s, "endwhere") == 0 - || strcmp(s, "procedure") == 0 ) { // Take care of the module procedure statement + || (strcmp(s, "procedure") == 0 && strcmp(prevWord,"module")==0) // Take care of the module procedure statement lev = -1; } else if (strcmp(prevWord, "end") == 0 && strcmp(s, "if") == 0){ // end if lev = 0; |