Public Member Functions | |
| const string & | getSymbolString () const |
| const string & | getFailedRegex () const |
| unsigned char | getRawStringPrefix () const |
| unsigned char | getContinuationChar () const |
| bool | highlightingEnabled () const |
| bool | isIgnoreCase () const |
| int | isKeyword (const string &s) |
| bool | load (const string &langDefPath, bool clear=true) |
| bool | allowNestedMLComments () const |
| bool | highlightingDisabled () const |
| bool | needsReload (const string &langDefPath) const |
| bool | enableReformatting () const |
| bool | allowExtEscSeq () const |
| const KeywordMap & | getKeywords () const |
| const vector< string > & | getKeywordClasses () const |
| const vector< RegexElement * > & | getRegexElements () const |
| const string & | getDescription () const |
| bool | delimiterIsDistinct (int stateID) |
| int | getDelimiterPairID (const string &token) |
| string | getDelimRegex (const string &lang) |
| void | restoreLangEndDelim (const string &langPath) |
| string | getNewPath (const string &lang) |
| string | getCurrentPath () |
The load() method will only read a new language definition if the given file path is not equal to the path of the current language definition.
| bool highlight::LanguageDefinition::allowExtEscSeq | ( | ) | const [inline] |
Referenced by highlight::CodeGenerator::processRootState().
| bool highlight::LanguageDefinition::allowNestedMLComments | ( | ) | const [inline] |
| bool highlight::LanguageDefinition::delimiterIsDistinct | ( | int | stateID | ) | [inline] |
| stateID | state id |
| bool highlight::LanguageDefinition::enableReformatting | ( | ) | const [inline] |
Referenced by highlight::CodeGenerator::loadLanguage().
| unsigned char highlight::LanguageDefinition::getContinuationChar | ( | ) | const [inline] |
| int highlight::LanguageDefinition::getDelimiterPairID | ( | const string & | token | ) | [inline] |
Pairs of open/close tokens have a unique ID to test if two tokens act as delimiters
| token | delimiter token |
| const string& highlight::LanguageDefinition::getDescription | ( | ) | const [inline] |
| const string& highlight::LanguageDefinition::getFailedRegex | ( | ) | const [inline] |
| const vector<string>& highlight::LanguageDefinition::getKeywordClasses | ( | ) | const [inline] |
| const KeywordMap& highlight::LanguageDefinition::getKeywords | ( | ) | const [inline] |
| string highlight::LanguageDefinition::getNewPath | ( | const string & | lang | ) |
| lang | language definition name (no path, no ".lang" extension) |
Referenced by load(), and highlight::CodeGenerator::processRootState().
| unsigned char highlight::LanguageDefinition::getRawStringPrefix | ( | ) | const [inline] |
| const vector<RegexElement*>& highlight::LanguageDefinition::getRegexElements | ( | ) | const [inline] |
| const string& highlight::LanguageDefinition::getSymbolString | ( | ) | const [inline] |
| bool highlight::LanguageDefinition::highlightingDisabled | ( | ) | const [inline] |
Referenced by highlight::CodeGenerator::processRootState().
| bool highlight::LanguageDefinition::highlightingEnabled | ( | ) | const [inline] |
Referenced by highlight::CodeGenerator::printExternalStyle().
| bool highlight::LanguageDefinition::isIgnoreCase | ( | ) | const [inline] |
| int highlight::LanguageDefinition::isKeyword | ( | const string & | s | ) |
| s | String |
| bool highlight::LanguageDefinition::load | ( | const string & | langDefPath, | |
| bool | clear = true | |||
| ) |
Load new language definition
| langDefPath | Path of language definition | |
| clear | Test if former data should be deleted |
References Pattern::compile(), ConfigurationReader::found(), getNewPath(), ConfigurationReader::getParameter(), ConfigurationReader::getParameterNames(), and StringTools::getParantheseVal().
Referenced by highlight::CodeGenerator::loadLanguage().
| bool highlight::LanguageDefinition::needsReload | ( | const string & | langDefPath | ) | const [inline] |
| langDefPath | Path to language definition |
Referenced by highlight::CodeGenerator::loadLanguage().
| void highlight::LanguageDefinition::restoreLangEndDelim | ( | const string & | langPath | ) |
initializes end delimiter regex to switch back to host language
| langPath | path of embedded language definition |
References Pattern::compile().
1.5.7.1