From 70620366c4b995abe6e8dba86170fc9cf7a2dc7c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 26 May 2014 12:55:22 -0400 Subject: [PATCH] Eval - Filter token diagnostics are color coded. --- src/Eval.cpp | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/src/Eval.cpp b/src/Eval.cpp index efabfa601..76b8bb85f 100644 --- a/src/Eval.cpp +++ b/src/Eval.cpp @@ -805,24 +805,15 @@ std::string Eval::dump ( { // Set up a color mapping. std::map color_map; - color_map[Lexer::typeNone] = Color ("white on green"); -/* - Lexer::typeOperator - Lexer::typeNone - Lexer::typeString - Lexer::typeIdentifier - Lexer::typeIdentifierEscape - Lexer::typeEscape - Lexer::typeEscapeHex - Lexer::typeEscapeUnicode - Lexer::typeNumber - Lexer::typeDecimal - Lexer::typeExponentIndicator - Lexer::typeExponent - Lexer::typeHex - Lexer::typeDate - Lexer::typeDuration -*/ + color_map[Lexer::typeNone] = Color ("rgb000 on gray6"); + color_map[Lexer::typeOperator] = Color ("gray14 on gray6"); + color_map[Lexer::typeNumber] = Color ("rgb530 on gray6"); + color_map[Lexer::typeHex] = Color ("rgb303 on gray6"); + color_map[Lexer::typeDecimal] = Color ("rgb530 on gray6"); + color_map[Lexer::typeString] = Color ("rgb550 on gray6"); + color_map[Lexer::typeIdentifier] = Color ("rgb035 on gray6"); + color_map[Lexer::typeDate] = Color ("rgb150 on gray6"); + color_map[Lexer::typeDuration] = Color ("rgb531 on gray6"); std::string output; std::vector >::const_iterator i;