summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-05-07 16:43:50 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-05-07 16:43:50 (GMT)
commitee7194bd73ee3a8142aee6ea59d2e5dc717b18de (patch)
tree93a3143635aef0a889986121d597b1435bb27923
parent5c5c90b63e9c5b21efa3cd7033b1c8f613f67e63 (diff)
downloadDoxygen-ee7194bd73ee3a8142aee6ea59d2e5dc717b18de.zip
Doxygen-ee7194bd73ee3a8142aee6ea59d2e5dc717b18de.tar.gz
Doxygen-ee7194bd73ee3a8142aee6ea59d2e5dc717b18de.tar.bz2
Coded coloring of flow statements corrected (regression)
Which patch 8e8c9a1 (dd. May 6) the rule: <Start>{FLOW}/[,( \t\n].* has been changed into" <Start>{FLOW}/[,( \t\n] (analogous: <Start>{COMMANDS}/[,( \t\n]) To overcome the warning: fortrancode.l:744: warning, dangerous trailing context. The result is that the code coloring of (e.g.) the if statements in: subroutine test_on_if if (a == b) then c = d endif if(a == b) then c = d endif end subroutine was removed, due to the fact that the rule: <Start>{ID}{BS}/"(" was used instead of the flow coloring rule. This patch fixes the rules so the lines are colored again and there is no warning.
-rw-r--r--src/fortrancode.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fortrancode.l b/src/fortrancode.l
index aaa8510..8b32792 100644
--- a/src/fortrancode.l
+++ b/src/fortrancode.l
@@ -735,13 +735,13 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
}
/*-------- inner construct ---------------------------------------------------*/
-<Start>{COMMANDS}/[,( \t\n] { // highlight
+<Start>{COMMANDS}/{BS}[,( \t\n] { // highlight
/* font class is defined e.g. in doxygen.css */
startFontClass("keyword");
codifyLines(yytext);
endFontClass();
}
-<Start>{FLOW}/[,( \t\n] {
+<Start>{FLOW}/{BS}[,( \t\n] {
if (g_isFixedForm)
{
if ((yy_my_start == 1) && ((yytext[0] == 'c') || (yytext[0] == 'C'))) YY_FTN_REJECT;