Example #1
0
 /// <summary>
 /// Default process new line state.
 /// </summary>
 /// <param name="editor"></param>
 /// <param name="c"></param>
 /// <returns>The new state after processing the current state.</returns>
 protected int DefaultProcessNewLine(CodeEditor editor, Region c)
 {
     // exit lexer if line does not end with "..."
     int i = c.Pos - 1;
     var C = (char)editor.GetCharAt(i);
     while (i > 0 && C != '\n' && char.IsWhiteSpace(C))
         C = (char)editor.GetCharAt(--i);
     return editor.GetTextRange(i - 2, 3) != "..." ? -1 : (int)BaseState.Default;
 }