Source Code (Use browser search to find items of interest.)
Class Index
kdevelop'SatherHighlight (./kdevelop/kdevelop/kwrite/highlight.h:506)
class SatherHighlight : public GenHighlight {
public:
SatherHighlight(const QString &name);
virtual ~SatherHighlight();
protected:
virtual void createItemData(ItemDataList &);
virtual void makeContextList();
};
kdevelop'SatherHighlight::SatherHighlight() (./kdevelop/kdevelop/kwrite/highlight.cpp:1707)
SatherHighlight::SatherHighlight(const QString &name) : GenHighlight(name) {
iWildcards = "*.sa";
iMimetypes = "text/x-sather-src";
}
kdevelop'SatherHighlight::~SatherHighlight() (./kdevelop/kdevelop/kwrite/highlight.cpp:1712)
SatherHighlight::~SatherHighlight() {
}
kdevelop'SatherHighlight::createItemData() (./kdevelop/kdevelop/kwrite/highlight.cpp:1715)
void SatherHighlight::createItemData(ItemDataList &list) {
list.append(new ItemData(i18nop("Normal Text" ),dsNormal)); // 0
list.append(new ItemData(i18nop("Keyword" ),dsKeyword));// 1
list.append(new ItemData(i18nop("Special Classname" ), dsNormal));// 2
list.append(new ItemData(i18nop("Classname" ),dsNormal)); // 3
list.append(new ItemData(i18nop("Special Featurename"),dsOthers)); // 4
list.append(new ItemData(i18nop("Identifier" ),dsOthers)); // 5
list.append(new ItemData(i18nop("Decimal" ),dsDecVal)); // 6
list.append(new ItemData(i18nop("Base-N" ),dsBaseN)); // 7
list.append(new ItemData(i18nop("Float" ),dsFloat)); // 8
list.append(new ItemData(i18nop("Char" ),dsChar)); // 9
list.append(new ItemData(i18nop("String" ),dsString)); // 10
list.append(new ItemData(i18nop("Comment" ),dsComment));// 11
}
kdevelop'SatherHighlight::makeContextList() (./kdevelop/kdevelop/kwrite/highlight.cpp:1731)
void SatherHighlight::makeContextList() {
HlContext *c;
HlKeyword *keyword,*spec_class,*spec_feat;
//Normal Context
contextList[0] = c = new HlContext(0,0);
c->items.append(keyword = new HlKeyword(1,0));
c->items.append(spec_class = new HlKeyword(2,0));
c->items.append(new HlSatherClassname(3,0));
c->items.append(spec_feat = new HlKeyword(4,0));
c->items.append(new HlSatherIdent(5,0));
c->items.append(new HlSatherFloat(8,0)); // check float before int
c->items.append(new HlSatherBaseN(7,0));
c->items.append(new HlSatherDec(6,0));
c->items.append(new HlSatherChar(9,0));
c->items.append(new HlSatherString(10,0));
c->items.append(new Hl2CharDetect(11,1, '-', '-'));
//Comment Context
contextList[1] = c = new HlContext(11,0);
keyword->addList(satherKeywords);
spec_class->addList(satherSpecClassNames);
spec_feat->addList(satherSpecFeatureNames);
}