TextHighlightRules = function() {

    // regexp must not have capturing parentheses
    // regexps are ordered -> the first match is used

    this.$rules = {
        "start" : [{
            token : "empty_line",
            regex : '^$'
        }, {
            token : "text",
            regex : ".+"
        }]
    };
}
Tokenizer.getLineTokens() -> Object

Returns an object containing two properties: `tokens`, which contains all the tokens; and `state`, the current state.