Eval
- Filter token diagnostics are color coded.
This commit is contained in:
27
src/Eval.cpp
27
src/Eval.cpp
@@ -805,24 +805,15 @@ std::string Eval::dump (
|
|||||||
{
|
{
|
||||||
// Set up a color mapping.
|
// Set up a color mapping.
|
||||||
std::map <Lexer::Type, Color> color_map;
|
std::map <Lexer::Type, Color> color_map;
|
||||||
color_map[Lexer::typeNone] = Color ("white on green");
|
color_map[Lexer::typeNone] = Color ("rgb000 on gray6");
|
||||||
/*
|
color_map[Lexer::typeOperator] = Color ("gray14 on gray6");
|
||||||
Lexer::typeOperator
|
color_map[Lexer::typeNumber] = Color ("rgb530 on gray6");
|
||||||
Lexer::typeNone
|
color_map[Lexer::typeHex] = Color ("rgb303 on gray6");
|
||||||
Lexer::typeString
|
color_map[Lexer::typeDecimal] = Color ("rgb530 on gray6");
|
||||||
Lexer::typeIdentifier
|
color_map[Lexer::typeString] = Color ("rgb550 on gray6");
|
||||||
Lexer::typeIdentifierEscape
|
color_map[Lexer::typeIdentifier] = Color ("rgb035 on gray6");
|
||||||
Lexer::typeEscape
|
color_map[Lexer::typeDate] = Color ("rgb150 on gray6");
|
||||||
Lexer::typeEscapeHex
|
color_map[Lexer::typeDuration] = Color ("rgb531 on gray6");
|
||||||
Lexer::typeEscapeUnicode
|
|
||||||
Lexer::typeNumber
|
|
||||||
Lexer::typeDecimal
|
|
||||||
Lexer::typeExponentIndicator
|
|
||||||
Lexer::typeExponent
|
|
||||||
Lexer::typeHex
|
|
||||||
Lexer::typeDate
|
|
||||||
Lexer::typeDuration
|
|
||||||
*/
|
|
||||||
|
|
||||||
std::string output;
|
std::string output;
|
||||||
std::vector <std::pair <std::string, Lexer::Type> >::const_iterator i;
|
std::vector <std::pair <std::string, Lexer::Type> >::const_iterator i;
|
||||||
|
|||||||
Reference in New Issue
Block a user