summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-12-14 11:51:09 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-12-14 11:51:09 (GMT)
commita2c0932323f0f844a76ec696cab6e78f5e85b05a (patch)
tree4e7ac6d32abd0ed4ee04a46ffd84ac40894b4d27
parenta754afcbab7f01616204bd5f78679b3d4a735232 (diff)
parentd3a5f96d07db323ff97fb07766a809769506ef3a (diff)
downloadDoxygen-a2c0932323f0f844a76ec696cab6e78f5e85b05a.zip
Doxygen-a2c0932323f0f844a76ec696cab6e78f5e85b05a.tar.gz
Doxygen-a2c0932323f0f844a76ec696cab6e78f5e85b05a.tar.bz2
Merge pull request #263 from albert-github/feature/bug_fortran_call_color
Fortran color CALL as keyword
-rw-r--r--src/fortrancode.l10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fortrancode.l b/src/fortrancode.l
index d68826f..f1a9da0 100644
--- a/src/fortrancode.l
+++ b/src/fortrancode.l
@@ -731,8 +731,8 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
/*-------- ignore ------------------------------------------------------------*/
-<Start>{IGNORE}/{BS}"("? { // do not search keywords, intrinsics... TODO: complete list
- codifyLines(yytext);
+<Start>{IGNORE}/{BS}"(" { // do not search keywords, intrinsics... TODO: complete list
+ codifyLines(yytext);
}
/*-------- inner construct ---------------------------------------------------*/
@@ -979,9 +979,11 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
/*-------- subprog calls -----------------------------------------*/
<Start>"call"{BS_} {
- codifyLines(yytext);
+ startFontClass("keyword");
+ codifyLines(yytext);
+ endFontClass();
yy_push_state(YY_START);
- BEGIN(SubCall);
+ BEGIN(SubCall);
}
<SubCall>{ID} { // subroutine call
g_insideBody=TRUE;