diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-16 06:32:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-16 06:32:08 +0000 |
commit | c54d50a4180520370c12dd7d06d035263d357d56 (patch) | |
tree | 3a2ee55df61f0fcd1050077fdff6c1ab54657104 /Driver/HTMLPrint.cpp | |
parent | 3245a0a1c7a4fd74fca845b2edba275bb126d773 (diff) |
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
Diffstat (limited to 'Driver/HTMLPrint.cpp')
-rw-r--r-- | Driver/HTMLPrint.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Driver/HTMLPrint.cpp b/Driver/HTMLPrint.cpp index cb32afd817..2b01489963 100644 --- a/Driver/HTMLPrint.cpp +++ b/Driver/HTMLPrint.cpp @@ -61,8 +61,10 @@ HTMLPrinter::~HTMLPrinter() { // 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. |