Пример #1
0
        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));
            }
        }
Пример #2
0
 public override LeafElementBase Create(IBuffer buffer, TreeOffset startOffset, TreeOffset endOffset)
 {
     return(new ClosedChameleonElement(YamlTokenType.GetChameleonMapEntryValueWithIndent(LexerIndent), startOffset, endOffset));
 }