Permalink
Browse files

Color code word OPERATOR and ASSIGNMENT as keyword in FORTRAN code

  • Loading branch information...
albert-github committed Aug 19, 2016
1 parent f37c0e5 commit 3f559575d63f2fd29888107afae85f4cc902b189
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/fortrancode.l
@@ -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 {

0 comments on commit 3f55957

Please sign in to comment.