summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2016-08-18 16:21:41 (GMT)
committeralbert-github <albert.tests@gmail.com>2016-08-18 16:21:41 (GMT)
commit0f047eb1862193713889d10bccb4894df1f7c23d (patch)
tree7828fac4cde2b06bc1a875c854fdaba73e0f7c2f
parentf37c0e58c47c43e96417d4dcf1559e3f9d1b323b (diff)
downloadDoxygen-0f047eb1862193713889d10bccb4894df1f7c23d.zip
Doxygen-0f047eb1862193713889d10bccb4894df1f7c23d.tar.gz
Doxygen-0f047eb1862193713889d10bccb4894df1f7c23d.tar.bz2
Color code word RESULT as keyword in FORTRAN code
-rw-r--r--src/fortrancode.l7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fortrancode.l b/src/fortrancode.l
index f14867c..4cd1b3a 100644
--- a/src/fortrancode.l
+++ b/src/fortrancode.l
@@ -925,7 +925,12 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
startScope();
generateLink(*g_code,yytext);
}
-<Subprog>"(".* { // ignore rest of line
+<Subprog>"result"/{BS}"("[^)]*")" {
+ startFontClass("keyword");
+ codifyLines(yytext);
+ endFontClass();
+ }
+<Subprog>"("[^)]*")" { // ignore rest of line
codifyLines(yytext);
}
<Subprog,Subprogend>"\n" { codifyLines(yytext);