diff mbox

[Fortran,committed] Fix coloring of : in diagnostic messages

Message ID 5472457F.8050702@net-b.de
State New
Headers show

Commit Message

Tobias Burnus Nov. 23, 2014, 8:37 p.m. UTC
In C etc., the colon is colored the same way as the preceeding word 
("warning:"), in Fortran, it wasn't.

Fixed as obvious; committed as Rev. 217986.

Tobias
diff mbox

Patch

Index: gcc/fortran/ChangeLog
===================================================================
--- gcc/fortran/ChangeLog	(Revision 217985)
+++ gcc/fortran/ChangeLog	(Arbeitskopie)
@@ -1,4 +1,9 @@ 
 2014-11-23  Tobias Burnus  <burnus@net-b.de>
+
+	* error.c (gfc_diagnostic_build_prefix): Correct coloring
+	of the colon of the prefix.
+
+2014-11-23  Tobias Burnus  <burnus@net-b.de>
 	    Manuel López-Ibáñez  <manu@gcc.gnu.org>
 
 	* gfortran.h (gfc_option_t): Remove warn_tabs.
Index: gcc/fortran/error.c
===================================================================
--- gcc/fortran/error.c	(Revision 217985)
+++ gcc/fortran/error.c	(Arbeitskopie)
@@ -1021,7 +1021,7 @@  gfc_diagnostic_build_prefix (diagnostic_context *c
 				diagnostic_kind_color[diagnostic->kind]);
       text_ce = colorize_stop (pp_show_color (pp));
     }
-  return build_message_string ("%s%s%s: ", text_cs, text, text_ce);
+  return build_message_string ("%s%s:%s ", text_cs, text, text_ce);
 }
 
 /* Return a malloc'd string describing a location.  The caller is