summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-12-09 19:54:34 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-12-09 19:54:34 (GMT)
commitb90e7da8c5eaf620eab5d92e340741cb5d9f3464 (patch)
tree7bc9f2cada9d781fe92733d0e808e72a3499b07c
parent540f0b66972c03fd53c97174e1680230b8dd4026 (diff)
parent1cfa914cbb4e41f15af1f08517af887d6b241f28 (diff)
downloadDoxygen-b90e7da8c5eaf620eab5d92e340741cb5d9f3464.zip
Doxygen-b90e7da8c5eaf620eab5d92e340741cb5d9f3464.tar.gz
Doxygen-b90e7da8c5eaf620eab5d92e340741cb5d9f3464.tar.bz2
Merge pull request #259 from albert-github/feature/bug_end_code_color
Fortran color code of END
-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");