split syntax highlighting of macros from keywords and comments,
allowing us to use a cheaper means to highlight keywords and making
it so that comments won't foul up macro expansions.
Start highlighting macro expansions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49779 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/HTMLPrint.cpp b/Driver/HTMLPrint.cpp
index cb32afd..2b01489 100644
--- a/Driver/HTMLPrint.cpp
+++ b/Driver/HTMLPrint.cpp
@@ -61,8 +61,10 @@
// If we have a preprocessor, relex the file and syntax hilight. We might not
// have a preprocessor if we come from a deserialized AST file, for example.
- if (PP)
+ if (PP) {
html::SyntaxHighlight(R, FileID, *PP);
+ html::HighlightMacros(R, FileID, *PP);
+ }
// Open the output.