Definition of a programming language's syntax for highlighting. More...
#include "donner/editor/TextEditorCore.h"
Public Types | |
| using | TokenRegexString |
| Pattern and palette color for one token class. | |
| using | TokenRegexStrings = std::vector<TokenRegexString> |
| Ordered regex token classes. | |
| using | TokenizeCallback |
| Callback that identifies the next token in a character range. | |
Static Public Member Functions | |
| static const LanguageDefinition & | SVG () |
| Get the SVG language definition. | |
Public Attributes | |
| RcString | name |
| Language name. | |
| Keywords | keywords |
| Language keywords. | |
| Identifiers | identifiers |
| Known identifiers. | |
| RcString | commentStart |
| Multi-line comment start. | |
| RcString | commentEnd |
| Multi-line comment end. | |
| RcString | singleLineComment |
| Single-line comment marker. | |
| bool | autoIndentation = true |
| Whether to enable auto-indentation. | |
| TokenizeCallback | tokenize |
| Custom tokenization callback. | |
| TokenRegexStrings | tokenRegexStrings |
| Regex patterns for syntax. | |
| bool | caseSensitive = true |
| Whether keywords are case-sensitive. | |
Definition of a programming language's syntax for highlighting.
Callback that identifies the next token in a character range.
Pattern and palette color for one token class.