summaryrefslogtreecommitdiffstats
path: root/src/fortrancode.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-12-08 13:58:58 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-12-08 13:58:58 (GMT)
commit1cfa914cbb4e41f15af1f08517af887d6b241f28 (patch)
tree7bc9f2cada9d781fe92733d0e808e72a3499b07c /src/fortrancode.l
parent540f0b66972c03fd53c97174e1680230b8dd4026 (diff)
downloadDoxygen-1cfa914cbb4e41f15af1f08517af887d6b241f28.zip
Doxygen-1cfa914cbb4e41f15af1f08517af887d6b241f28.tar.gz
Doxygen-1cfa914cbb4e41f15af1f08517af887d6b241f28.tar.bz2
Fortran color code of END
The color for the single END in Fortran code was of the color of the flow type entities though for all the flow entities the entity name is mandatory. For the entity statements of some keywords e.g. SUBROUTINE and FUNCTION the entity name is not mandatory with the END statement. The color of the single END statement has been changed from the flow type to the normal keyword type.
Diffstat (limited to 'src/fortrancode.l')
-rw-r--r--src/fortrancode.l5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fortrancode.l b/src/fortrancode.l
index 101137a..b9648d5 100644
--- a/src/fortrancode.l
+++ b/src/fortrancode.l
@@ -757,12 +757,11 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
codifyLines(yytext);
endFontClass();
}
-<Start>"end"({BS}{FLOW})?/[ \t\n] { // list is a bit long as not all have possible end
+<Start>"end"({BS}{FLOW})/[ \t\n] { // list is a bit long as not all have possible end
startFontClass("keywordflow");
codifyLines(yytext);
endFontClass();
}
-
<Start>"implicit"{BS}"none" {
startFontClass("keywordtype");
codifyLines(yytext);
@@ -893,7 +892,7 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
yy_pop_state();
YY_FTN_RESET
}
-<Start>^{BS}"end"{BS}("block"{BS}"data"|{SUBPROG}|"module"|"program"|"type"|"interface"){BS} { // Fortran subroutine or function ends
+<Start>^{BS}"end"{BS}("block"{BS}"data"|{SUBPROG}|"module"|"program"|"type"|"interface")?{BS} { // Fortran subroutine or function ends
//cout << "===> end function " << yytext << endl;
endScope();
startFontClass("keyword");