Filters: tweak colorize_cplusplus

This commit is contained in:
Maxime Coste 2011-11-04 09:10:28 +00:00
parent cebb7980cb
commit 46e727d5b6

View File

@ -55,7 +55,7 @@ void colorize_cplusplus(DisplayBuffer& display_buffer)
//static boost::regex operators("->|\\+|\\-|\\*|/|\\\\|\\&|\\|\\^|[<>=!+-]=|=|\\(|\\)|\\[|\\]|\\{|\\}|\\<(not|and|or|xor)\\>");
//colorize_regex(display_buffer, operators, Color::Green);
static boost::regex types_keywords("\\<(const|auto|namespace|static|volatile|class|struct|enum|union|public|protected|private|template|typedef)\\>");
static boost::regex types_keywords("\\<(const|auto|namespace|static|volatile|class|struct|enum|union|public|protected|private|template|typedef|virtual)\\>");
colorize_regex(display_buffer, types_keywords, Color::Green);
}