Packages
Packages copied to clipboard
[C++] Empty preprocessor line
What happened?
Empty or null preprocessor lines (a single '#' and a newline) are not highlighted like 'normal' preprocessor lines. This shocked me, since I didn't even know null preprocessor lines were legal. But they are.
Example from boost;
#ifndef BOOST_CONFIG_HPP
# include <boost/config.hpp>
#endif
# <------------ this line will not be colored like the rest of the preprocessor directives
#if defined(BOOST_HAS_PRAGMA_ONCE)
# pragma once
#endif
Expected to have the pound sign / hashtag / octothorpe to be highlighted as the start of a preprocessor directive.
Expected to have the pound sign / hashtag / octothorpe to be highlighted as the start of a preprocessor directive.
Agree. What's the point of the C preprocessor's Null directive?