#include <text_editor.h>
Public Types | |
typedef std::pair< std::string, PaletteIndex > | TokenRegexString |
typedef std::vector< TokenRegexString > | TokenRegexStrings |
typedef bool(* | TokenizeCallback) (const char *in_begin, const char *in_end, const char *&out_begin, const char *&out_end, PaletteIndex &paletteIndex) |
Public Member Functions | |
LanguageDefinition () | |
Static Public Member Functions | |
static const LanguageDefinition & | CPlusPlus () |
static const LanguageDefinition & | HLSL () |
static const LanguageDefinition & | GLSL () |
static const LanguageDefinition & | C () |
static const LanguageDefinition & | SQL () |
static const LanguageDefinition & | AngelScript () |
static const LanguageDefinition & | Lua () |
Public Attributes | |
std::string | mName |
Keywords | mKeywords |
Identifiers | mIdentifiers |
Identifiers | mPreprocIdentifiers |
std::string | mCommentStart |
std::string | mCommentEnd |
std::string | mSingleLineComment |
char | mPreprocChar |
bool | mAutoIndentation |
TokenizeCallback | mTokenize |
TokenRegexStrings | mTokenRegexStrings |
bool | mCaseSensitive |
Definition at line 134 of file text_editor.h.
typedef std::pair<std::string, PaletteIndex> TextEditor::LanguageDefinition::TokenRegexString |
Definition at line 135 of file text_editor.h.
typedef std::vector<TokenRegexString> TextEditor::LanguageDefinition::TokenRegexStrings |
Definition at line 136 of file text_editor.h.
typedef bool(* TextEditor::LanguageDefinition::TokenizeCallback) (const char *in_begin, const char *in_end, const char *&out_begin, const char *&out_end, PaletteIndex &paletteIndex) |
Definition at line 137 of file text_editor.h.
|
inline |
Definition at line 156 of file text_editor.h.
References mAutoIndentation, mCaseSensitive, mPreprocChar, and mTokenize.
Referenced by AngelScript(), C(), CPlusPlus(), GLSL(), HLSL(), Lua(), and SQL().
|
static |
Definition at line 2480 of file text_editor.cc.
References TextEditor::CharLiteral, TextEditor::Default, TextEditor::Identifier, LanguageDefinition(), mAutoIndentation, TextEditor::Max, mCaseSensitive, mCommentEnd, mCommentStart, TextEditor::Identifier::mDeclaration, mIdentifiers, mKeywords, mName, mSingleLineComment, mTokenize, TextEditor::Number, TextEditor::Punctuation, and TextEditor::String.
|
static |
Definition at line 2639 of file text_editor.cc.
References TextEditor::CharLiteral, TextEditor::Identifier, LanguageDefinition(), mAutoIndentation, mCaseSensitive, mCommentEnd, mCommentStart, TextEditor::Identifier::mDeclaration, mIdentifiers, mKeywords, mName, mSingleLineComment, mTokenRegexStrings, TextEditor::Number, TextEditor::Preprocessor, TextEditor::Punctuation, and TextEditor::String.
Referenced by TextEditor::TextEditor().
|
static |
Definition at line 3027 of file text_editor.cc.
References TextEditor::CharLiteral, TextEditor::Identifier, LanguageDefinition(), mAutoIndentation, mCaseSensitive, mCommentEnd, mCommentStart, TextEditor::Identifier::mDeclaration, mIdentifiers, mKeywords, mName, mSingleLineComment, mTokenRegexStrings, TextEditor::Number, TextEditor::Preprocessor, TextEditor::Punctuation, and TextEditor::String.
|
static |
Definition at line 3106 of file text_editor.cc.
References TextEditor::CharLiteral, TextEditor::Default, TextEditor::Identifier, LanguageDefinition(), mAutoIndentation, TextEditor::Max, mCaseSensitive, mCommentEnd, mCommentStart, TextEditor::Identifier::mDeclaration, mIdentifiers, mKeywords, mName, mSingleLineComment, mTokenize, TextEditor::Number, TextEditor::Punctuation, and TextEditor::String.
|
static |
Definition at line 3181 of file text_editor.cc.
References TextEditor::Identifier, LanguageDefinition(), mAutoIndentation, mCaseSensitive, mCommentEnd, mCommentStart, TextEditor::Identifier::mDeclaration, mIdentifiers, mKeywords, mName, mSingleLineComment, mTokenRegexStrings, TextEditor::Number, TextEditor::Punctuation, and TextEditor::String.
|
static |
Definition at line 3547 of file text_editor.cc.
References TextEditor::Identifier, LanguageDefinition(), mAutoIndentation, mCaseSensitive, mCommentEnd, mCommentStart, TextEditor::Identifier::mDeclaration, mIdentifiers, mKeywords, mName, mSingleLineComment, mTokenRegexStrings, TextEditor::Number, TextEditor::Punctuation, and TextEditor::String.
|
static |
Definition at line 3623 of file text_editor.cc.
References TextEditor::Identifier, LanguageDefinition(), mAutoIndentation, mCaseSensitive, mCommentEnd, mCommentStart, TextEditor::Identifier::mDeclaration, mIdentifiers, mKeywords, mName, mSingleLineComment, mTokenRegexStrings, TextEditor::Number, TextEditor::Punctuation, and TextEditor::String.
std::string TextEditor::LanguageDefinition::mName |
Definition at line 142 of file text_editor.h.
Referenced by AngelScript(), C(), CPlusPlus(), yaze::gui::GetAssemblyLanguageDef(), GLSL(), HLSL(), Lua(), and SQL().
Keywords TextEditor::LanguageDefinition::mKeywords |
Definition at line 143 of file text_editor.h.
Referenced by AngelScript(), C(), CPlusPlus(), yaze::gui::GetAssemblyLanguageDef(), GLSL(), HLSL(), Lua(), and SQL().
Identifiers TextEditor::LanguageDefinition::mIdentifiers |
Definition at line 144 of file text_editor.h.
Referenced by AngelScript(), C(), CPlusPlus(), yaze::gui::GetAssemblyLanguageDef(), GLSL(), HLSL(), Lua(), and SQL().
Identifiers TextEditor::LanguageDefinition::mPreprocIdentifiers |
Definition at line 145 of file text_editor.h.
std::string TextEditor::LanguageDefinition::mCommentStart |
Definition at line 146 of file text_editor.h.
Referenced by AngelScript(), C(), CPlusPlus(), yaze::gui::GetAssemblyLanguageDef(), GLSL(), HLSL(), Lua(), and SQL().
std::string TextEditor::LanguageDefinition::mCommentEnd |
Definition at line 146 of file text_editor.h.
Referenced by AngelScript(), C(), CPlusPlus(), yaze::gui::GetAssemblyLanguageDef(), GLSL(), HLSL(), Lua(), and SQL().
std::string TextEditor::LanguageDefinition::mSingleLineComment |
Definition at line 146 of file text_editor.h.
Referenced by AngelScript(), C(), CPlusPlus(), yaze::gui::GetAssemblyLanguageDef(), GLSL(), HLSL(), Lua(), and SQL().
char TextEditor::LanguageDefinition::mPreprocChar |
Definition at line 147 of file text_editor.h.
Referenced by LanguageDefinition().
bool TextEditor::LanguageDefinition::mAutoIndentation |
Definition at line 148 of file text_editor.h.
Referenced by AngelScript(), C(), CPlusPlus(), yaze::gui::GetAssemblyLanguageDef(), GLSL(), HLSL(), LanguageDefinition(), Lua(), and SQL().
TokenizeCallback TextEditor::LanguageDefinition::mTokenize |
Definition at line 150 of file text_editor.h.
Referenced by C(), CPlusPlus(), and LanguageDefinition().
TokenRegexStrings TextEditor::LanguageDefinition::mTokenRegexStrings |
Definition at line 152 of file text_editor.h.
Referenced by AngelScript(), yaze::gui::GetAssemblyLanguageDef(), GLSL(), HLSL(), Lua(), and SQL().
bool TextEditor::LanguageDefinition::mCaseSensitive |
Definition at line 154 of file text_editor.h.
Referenced by AngelScript(), C(), CPlusPlus(), yaze::gui::GetAssemblyLanguageDef(), GLSL(), HLSL(), LanguageDefinition(), Lua(), and SQL().