Source Code (Use browser search to find items of interest.)
Class Index
kdelibs'BashHighlight (./kdelibs/kwrite/highlight.h:464)
class BashHighlight : public GenHighlight {
public:
BashHighlight(const QString &name);
virtual ~BashHighlight();
protected:
virtual void createItemData(ItemDataList &);
virtual void makeContextList();
};
kdelibs'BashHighlight::BashHighlight() (./kdelibs/kwrite/highlight.cpp:1313)
BashHighlight::BashHighlight(const QString &name) : GenHighlight(name) {
// iWildcards = "";
iMimetypes = "text/x-shellscript";
}
kdelibs'BashHighlight::~BashHighlight() (./kdelibs/kwrite/highlight.cpp:1319)
BashHighlight::~BashHighlight() {
}
kdelibs'BashHighlight::createItemData() (./kdelibs/kwrite/highlight.cpp:1322)
void BashHighlight::createItemData(ItemDataList &list) {
list.append(new ItemData(I18N_NOOP("Normal Text" ),dsNormal));
list.append(new ItemData(I18N_NOOP("Keyword" ),dsKeyword));
list.append(new ItemData(I18N_NOOP("Integer" ),dsDecVal));
list.append(new ItemData(I18N_NOOP("String" ),dsString));
list.append(new ItemData(I18N_NOOP("Substitution"),dsOthers));//darkCyan,cyan,false,false);
list.append(new ItemData(I18N_NOOP("Comment" ),dsComment));
}
kdelibs'BashHighlight::makeContextList() (./kdelibs/kwrite/highlight.cpp:1332)
void BashHighlight::makeContextList() {
HlContext *c;
HlKeyword *keyword;
contextList[0] = c = new HlContext(0,0);
c->items.append(keyword = new HlKeyword(1,0));
c->items.append(new HlInt(2,0));
c->items.append(new HlCharDetect(3,1,'"'));
c->items.append(new HlCharDetect(4,2,'`'));
c->items.append(new HlShellComment(5,3));
contextList[1] = c = new HlContext(3,0);
c->items.append(new HlCharDetect(3,0,'"'));
contextList[2] = c = new HlContext(4,0);
c->items.append(new HlCharDetect(4,0,'`'));
contextList[3] = new HlContext(5,0);
keyword->addList(bashKeywords);
}