summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-11-19 19:56:08 (GMT)
committerGitHub <noreply@github.com>2017-11-19 19:56:08 (GMT)
commit353568560581bb40acb51f2908b6797ffbd57ff4 (patch)
tree02910e0536ce4b2a5dd984bc4b5db576c31e4359
parent1a1fdbed64de6ce01959b2e4d0988be823fb6bad (diff)
parent6f7264f4a16f5b1240291c6d33a0e4cc98ba30e4 (diff)
downloadDoxygen-353568560581bb40acb51f2908b6797ffbd57ff4.zip
Doxygen-353568560581bb40acb51f2908b6797ffbd57ff4.tar.gz
Doxygen-353568560581bb40acb51f2908b6797ffbd57ff4.tar.bz2
Merge pull request #620 from albert-github/feature/bug_ftn_code_comma
Code color of , (comma) together with only in use statement
-rw-r--r--src/fortrancode.l16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fortrancode.l b/src/fortrancode.l
index 1f22700..141e762 100644
--- a/src/fortrancode.l
+++ b/src/fortrancode.l
@@ -774,6 +774,13 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
yy_push_state(YY_START);
BEGIN(Use);
}
+<Use>"ONLY" { // TODO: rename
+ startFontClass("keywordtype");
+ codifyLines(yytext);
+ endFontClass();
+ yy_push_state(YY_START);
+ BEGIN(UseOnly);
+ }
<Use>{ID} {
QCString tmp = yytext;
tmp = tmp.lower();
@@ -790,14 +797,7 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
useMembers->append(tmp, useEntry);
addUse(tmp);
}
-<Use>,{BS}"ONLY" { // TODO: rename
- startFontClass("keywordtype");
- codifyLines(yytext);
- endFontClass();
- yy_push_state(YY_START);
- BEGIN(UseOnly);
- }
-<UseOnly,Import>{BS},{BS} { codifyLines(yytext); }
+<Use,UseOnly,Import>{BS},{BS} { codifyLines(yytext); }
<UseOnly,Import>{BS}&{BS}"\n" { codifyLines(yytext);
g_contLineNr++;
YY_FTN_RESET}