Filters: tweak colorize_cplusplus

This commit is contained in:
Maxime Coste 2011-10-06 21:12:16 +00:00
parent f9be716776
commit cf9f8c93ec

View File

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