| 725 | }; |
| 726 | |
| 727 | Colorer::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 | } |
| 748 | Colorer::~Colorer() |
| 749 | { |
| 750 | syntax->DeInitGrammar(); |
nothing calls this directly
no test coverage detected