protected override MatchResult GetMatchingResult(Match match) { var value = match.Value; return(MatchResult.CreateMatching( new Token(value.TrimEnd().TrimEnd(';'), TokenType.Keyword), value.EndsWith(";") ? value.Length - 1 : value.Length)); }
protected override MatchResult GetMatchingResult(Match match) { return(MatchResult.CreateMatching( new TokenToIgnore(match.Value, TokenType.CodeDocumentation), match.Value.Length)); }
protected override MatchResult GetMatchingResult(Match match) { return(MatchResult.CreateMatching( new TokenToIgnore(match.Value, TokenType.Whitespace), match.Value.Length)); }
protected override MatchResult GetMatchingResult(Match match) { return(MatchResult.CreateMatching( new Token(match.Value, TokenType.Identifier), match.Value.Length)); }
protected override MatchResult GetMatchingResult(Match match) { return(MatchResult.CreateMatching( new Token(match.Value.Trim('"'), TokenType.StringConst), match.Value.Length)); }
protected override MatchResult GetMatchingResult(Match match) { return(MatchResult.CreateMatching( new TokenToIgnore(match.Value, TokenType.MultiLineComment), match.Value.Length)); }
protected override MatchResult GetMatchingResult(Match match) { return(MatchResult.CreateMatching( new Token(GetValue(match.Value), TokenType.Symbol), match.Value.Length)); }