forked from qt-creator/qt-creator
C++: optionally let the highlighter handle ifdefed-out blocks.
Change-Id: I38cc0e55348cac0245d2ab8f3e39c68de76e3e6d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
480f7c09fc
commit
073e5d6632
@@ -428,18 +428,6 @@ signals:
|
||||
void refactorMarkerClicked(const TextEditor::RefactorMarker &marker);
|
||||
|
||||
public:
|
||||
|
||||
struct BlockRange
|
||||
{
|
||||
BlockRange() : first(0), last(-1) {}
|
||||
BlockRange(int first_position, int last_position)
|
||||
: first(first_position), last(last_position)
|
||||
{}
|
||||
int first;
|
||||
int last;
|
||||
inline bool isNull() const { return last < first; }
|
||||
};
|
||||
|
||||
// the blocks list must be sorted
|
||||
void setIfdefedOutBlocks(const QList<BlockRange> &blocks);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user