Skip to content

Commit

Permalink
Color code word OPERATOR and ASSIGNMENT as keyword in FORTRAN code
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-github committed Aug 19, 2016
1 parent f37c0e5 commit 3f55957
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/fortrancode.l
Expand Up @@ -1123,6 +1123,16 @@ PREFIX (RECURSIVE{BS_}|IMPURE{BS_}|PURE{BS_}|ELEMENTAL{BS_}){0,3}(RECURSIVE|I
codifyLines(yytext);
endFontClass();
}
<*>"assignment"/{BS}"("{BS}"="{BS}")" {
startFontClass("keyword");
codifyLines(yytext);
endFontClass();
}
<*>"operator"/{BS}"("[^)]*")" {
startFontClass("keyword");
codifyLines(yytext);
endFontClass();
}

/*------ preprocessor --------------------------------------------*/
<Start>"#".*\n {
Expand Down

0 comments on commit 3f55957

Please sign in to comment.