Permalink
Browse files

Color code word RESULT as keyword in FORTRAN code

  • Loading branch information...
albert-github committed Aug 18, 2016
1 parent f37c0e5 commit 0f047eb1862193713889d10bccb4894df1f7c23d
Showing with 6 additions and 1 deletion.
  1. +6 −1 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);

0 comments on commit 0f047eb

Please sign in to comment.