Source Code (Use browser search to find items of interest.)

Class Index

kdevelop'BashHighlight (./kdevelop/kdevelop/kwrite/highlight.h:458)

class BashHighlight : public GenHighlight {
  public:
    BashHighlight(const QString &name);
    virtual ~BashHighlight();
  protected:
    virtual void createItemData(ItemDataList &);
    virtual void makeContextList();
};


kdevelop'BashHighlight::BashHighlight() (./kdevelop/kdevelop/kwrite/highlight.cpp:1278)

BashHighlight::BashHighlight(const QString &name) : GenHighlight(name) {
//  iWildcards = "";
  iMimetypes = "text/x-shellscript";
}



kdevelop'BashHighlight::~BashHighlight() (./kdevelop/kdevelop/kwrite/highlight.cpp:1284)

BashHighlight::~BashHighlight() {
}


kdevelop'BashHighlight::createItemData() (./kdevelop/kdevelop/kwrite/highlight.cpp:1287)

void BashHighlight::createItemData(ItemDataList &list) {

  list.append(new ItemData(i18nop("Normal Text" ),dsNormal));
  list.append(new ItemData(i18nop("Keyword"     ),dsKeyword));
  list.append(new ItemData(i18nop("Integer"     ),dsDecVal));
  list.append(new ItemData(i18nop("String"      ),dsString));
  list.append(new ItemData(i18nop("Substitution"),dsOthers));//darkCyan,cyan,false,false);
  list.append(new ItemData(i18nop("Comment"     ),dsComment));
}


kdevelop'BashHighlight::makeContextList() (./kdevelop/kdevelop/kwrite/highlight.cpp:1297)

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);
}