Source-highlight Library
|
00001 // 00002 // Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004-2008 00003 // 00004 // Copyright: See COPYING file that comes with this distribution 00005 // 00006 00007 #ifndef HIGHLIGHTEVENT_H_ 00008 #define HIGHLIGHTEVENT_H_ 00009 00010 namespace srchilite { 00011 00012 struct HighlightToken; 00013 00018 struct HighlightEvent { 00020 enum HighlightEventType { 00021 FORMAT = 0, 00022 FORMATDEFAULT, 00023 ENTERSTATE, 00024 EXITSTATE 00025 }; 00026 00028 const HighlightToken &token; 00029 00031 HighlightEventType type; 00032 00033 HighlightEvent(const HighlightToken &_token, HighlightEventType _type = FORMAT) : 00034 token(_token), type(_type) { 00035 } 00036 ~HighlightEvent() { 00037 } 00038 }; 00039 00040 } 00041 00042 #endif /*HIGHLIGHTEVENT_H_*/