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

Class Index

kdelibs'ModulaHighlight (./kdelibs/kwrite/highlight.h:473)

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


kdelibs'ModulaHighlight::ModulaHighlight() (./kdelibs/kwrite/highlight.cpp:1352)

ModulaHighlight::ModulaHighlight(const QString &name) : GenHighlight(name) {
  iWildcards = "*.md;*.mi";
  iMimetypes = "text/x-modula-2-src";
}


kdelibs'ModulaHighlight::~ModulaHighlight() (./kdelibs/kwrite/highlight.cpp:1357)

ModulaHighlight::~ModulaHighlight() {
}


kdelibs'ModulaHighlight::createItemData() (./kdelibs/kwrite/highlight.cpp:1360)

void ModulaHighlight::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("Decimal"    ),dsDecVal));
  list.append(new ItemData(I18N_NOOP("Hex"        ),dsBaseN));
  list.append(new ItemData(I18N_NOOP("Float"      ),dsFloat));
  list.append(new ItemData(I18N_NOOP("String"     ),dsString));
  list.append(new ItemData(I18N_NOOP("Comment"    ),dsComment));
}


kdelibs'ModulaHighlight::makeContextList() (./kdelibs/kwrite/highlight.cpp:1371)

void ModulaHighlight::makeContextList() {
  HlContext *c;
  HlKeyword *keyword;

  contextList[0] = c = new HlContext(0,0);
    c->items.append(keyword = new HlKeyword(1,0));
    c->items.append(new HlFloat(4,0));
    c->items.append(new HlMHex(3,0));
    c->items.append(new HlInt(2,0));
    c->items.append(new HlCharDetect(5,1,'"'));
    c->items.append(new Hl2CharDetect(6,2, '(', '*'));
  contextList[1] = c = new HlContext(5,0);
    c->items.append(new HlCharDetect(5,0,'"'));
  contextList[2] = c = new HlContext(6,2);
    c->items.append(new Hl2CharDetect(6,0, '*', ')'));

  keyword->addList(modulaKeywords);
}