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