From a5a75e7a106aa58c65ae9b5e42128e1278542f67 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 16 Apr 2008 06:32:08 +0000 Subject: 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. llvm-svn: 49779 --- clang/Driver/HTMLPrint.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'clang/Driver/HTMLPrint.cpp') diff --git a/clang/Driver/HTMLPrint.cpp b/clang/Driver/HTMLPrint.cpp index cb32afd8175..2b014899631 100644 --- a/clang/Driver/HTMLPrint.cpp +++ b/clang/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. -- cgit v1.2.3