12#ifndef STATELANGELEM_H
13#define STATELANGELEM_H
15#include "statestartlangelem.h"
37class StateLangElem :
public LangElem
49 void set_elems(
LangElems *elems) { langelems = elems; }
50 void set_state() { state =
true; }
57 bool isState()
const {
return state; }
58 LangElems *getElems()
const {
return langelems; }
61virtual void dispatch_build(HighlightStateBuilder *, HighlightState * state);
62virtual void dispatch_collect_const(LangElemsPrinter *);
Builds an HighlightState from the language definition file collected structures.
Definition highlightstatebuilder.h:22
Represents a state during the highlighting (e.g., comment state, string state, etc....
Definition highlightstate.h:47
Prints all the language elements.
Definition langelemsprinter.h:27
collection of LangElem objects
Definition langelems.h:34
virtual const std::string toString() const
return the string representation (with preprocessing)
virtual const std::string toStringOriginal() const
return the original representation (without any preprocessing); this is useful for printing errors
A language element that may start a new state/environment.
Definition statestartlangelem.h:25
represent a string for a language definition file's element
Definition stringdef.h:25
A collection (list) of StringDef's.
Definition stringdef.h:110
C++ class: doctemplate.h.
Definition bufferedoutput.cpp:13