Skip to content

Commit

Permalink
Color code word RESULT as keyword in FORTRAN code
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-github committed Aug 18, 2016
1 parent f37c0e5 commit 0f047eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/fortrancode.l
Expand Up @@ -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);
Expand Down

0 comments on commit 0f047eb

Please sign in to comment.