Filters: tweak colorize_cplusplus
This commit is contained in:
parent
cebb7980cb
commit
46e727d5b6
|
@ -55,7 +55,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|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);
|
colorize_regex(display_buffer, types_keywords, Color::Green);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user