MCPcopy Create free account
hub / github.com/WheretIB/nullc / Colorer

Method Colorer

Colorer.cpp:727–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725};
726
727Colorer::Colorer()
728{
729 syntax = new ColorerGrammar::Grammar();
730
731 ColorerGrammar::ColorRWord = ColorCodeCallback(this, COLOR_RWORD);
732 ColorerGrammar::ColorVar = ColorCodeCallback(this, COLOR_VAR);
733 ColorerGrammar::ColorVarDef = ColorCodeCallback(this, COLOR_VARDEF);
734 ColorerGrammar::ColorFunc = ColorCodeCallback(this, COLOR_FUNC);
735 ColorerGrammar::ColorText = ColorCodeCallback(this, COLOR_TEXT);
736 ColorerGrammar::ColorBold = ColorCodeCallback(this, COLOR_BOLD);
737 ColorerGrammar::ColorChar = ColorCodeCallback(this, COLOR_CHAR);
738 ColorerGrammar::ColorReal = ColorCodeCallback(this, COLOR_REAL);
739 ColorerGrammar::ColorInt = ColorCodeCallback(this, COLOR_INT);
740 ColorerGrammar::ColorErr = ColorCodeCallback(this, COLOR_ERR);
741 ColorerGrammar::ColorComment= ColorCodeCallback(this, COLOR_COMMENT);
742
743
744 ColorerGrammar::ColorCode = ColorCodeCallback(this, COLOR_CODE);
745
746 syntax->InitGrammar();
747}
748Colorer::~Colorer()
749{
750 syntax->DeInitGrammar();

Callers

nothing calls this directly

Calls 2

InitGrammarMethod · 0.80
ColorCodeCallbackClass · 0.70

Tested by

no test coverage detected