|
Source-highlight Library
|
#include <namedsubexpslangelem.h>


Public Member Functions | |
| NamedSubExpsLangElem (const ElementNames *names, StringDef *def, bool exit=false, bool all=false) | |
| virtual const std::string | toString () const |
| virtual const std::string | toStringOriginal () const |
| const ElementNames * | getElementNames () const |
| const StringDef * | getRegexpDef () const |
| virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
| virtual void | dispatch_collect_const (LangElemsPrinter *) |
| void | setExit (unsigned int level=1) |
| Sets the "exit" property of this element (i.e., if the element is match then exit one state) More... | |
| void | setExitAll () |
| Sets the "exit all" property of this element (i.e., if the element is match then exit all states and get back to the main initial state) | |
| bool | exitAll () const |
| unsigned int | getExit () const |
| StateLangElem * | getStateLangElem () const |
| void | setStateLangElem (StateLangElem *s) |
| Sets the state for which this element represents the start. More... | |
| const std::string | getName () const |
| bool | isRedef () const |
| void | setRedef () |
| bool | isSubst () const |
| void | setSubst () |
| const std::string | toStringParserInfo () const |
| void | setParserInfo (const std::string &name, unsigned int l) |
| void | setParserInfo (const ParserInfo *p) |
Public Attributes | |
| std::string | filename |
| unsigned int | line |
Private Attributes | |
| const ElementNames * | elementNames |
| the element names | |
| StringDef * | regexpDef |
| the whole regular expression defiition | |
| unsigned int | exit |
| the exit level | |
| bool | exit_all |
| whether to exit all states | |
| StateLangElem * | statelangelem |
| the possible State of which we represent the start. | |
| const std::string | name |
| the name for this language element | |
| bool | redef |
| whether this redefs an existing language element | |
| bool | subst |
An element with subparts (subexpressions), each with a possible different name.
| srchilite::NamedSubExpsLangElem::NamedSubExpsLangElem | ( | const ElementNames * | names, |
| StringDef * | def, | ||
| bool | exit = false, |
||
| bool | all = false |
||
| ) |
| names | the element names (one for each subexpression) |
| def | the whole definition |
| exit | whether to exit one state |
| all | whether to exit all states |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inlineinherited |
Sets the "exit" property of this element (i.e., if the element is match then exit one state)
| level | the exit level (default to 1) |
|
inlineinherited |
Sets the state for which this element represents the start.
| s | the state for which this element represents the start |
|
virtual |
Reimplemented from srchilite::StateStartLangElem.
|
virtual |
Implements srchilite::LangElem.
|
inherited |