Antlr4.StringTemplate.Compiler.TemplateLexer.MatchIdentifier C# (CSharp) Method

MatchIdentifier() private method

private MatchIdentifier ( ) : IToken
return IToken
        private IToken MatchIdentifier()
        {
            // called from subTemplate; so keep resetting position during speculation
            startCharIndex = input.Index;
            startLine = input.Line;
            startCharPositionInLine = input.CharPositionInLine;
            Consume();
            while (IsIDLetter(c))
            {
                Consume();
            }
            return NewToken(ID);
        }