From 3f559575d63f2fd29888107afae85f4cc902b189 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 19 Aug 2016 13:38:38 +0200 Subject: Color code word OPERATOR and ASSIGNMENT as keyword in FORTRAN code --- src/fortrancode.l | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/fortrancode.l b/src/fortrancode.l index f14867c..d5cf663 100644 --- a/src/fortrancode.l +++ b/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 --------------------------------------------*/ "#".*\n { -- cgit v0.12