private StateResult HexLiteral()
 {
     AssertCurrent('&');
     TakeCurrent();
     Debug.Assert(Char.ToLowerInvariant(CurrentCharacter) == 'h');
     TakeCurrent();
     TakeUntil(c => !ParserHelpers.IsHexDigit(c));
     TakeIntTypeSuffix();
     return(Stay(EndSymbol(VBSymbolType.IntegerLiteral)));
 }
Exemple #2
0
 private StateResult HexLiteral()
 {
     TakeUntil(c => !ParserHelpers.IsHexDigit(c));
     TakeIntegerSuffix();
     return(Stay(EndSymbol(CSharpSymbolType.IntegerLiteral)));
 }
Exemple #3
0
        /// <summary>
        /// Tokenizes a hex literal.
        /// </summary>
        /// <returns>The state result.</returns>
        private StateResult HexLiteral()
        {
            TakeUntil(c => !ParserHelpers.IsHexDigit(c));

            return(Stay(EndSymbol(HandlebarsSymbolType.IntegerLiteral)));
        }