private TokenNodeType TryEatLinesWithGreaterIndent() { var previousLastNewLineOffset = lastNewLineOffset; var previousLineIndent = currentLineIndent; var count = EatLinesWithGreaterIndent(); if (count == 1) { RewindToken(); currentLineIndent = previousLineIndent; lastNewLineOffset = previousLastNewLineOffset; return(_locateToken()); } else { yy_at_bol = true; return(YamlTokenType.GetChameleonMapEntryValueWithIndent(previousLineIndent)); } }
public override LeafElementBase Create(IBuffer buffer, TreeOffset startOffset, TreeOffset endOffset) { return(new ClosedChameleonElement(YamlTokenType.GetChameleonMapEntryValueWithIndent(LexerIndent), startOffset, endOffset)); }