コード例 #1
0
        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));
        }
コード例 #2
0
 protected override MatchResult GetMatchingResult(Match match)
 {
     return(MatchResult.CreateMatching(
                new TokenToIgnore(match.Value, TokenType.CodeDocumentation),
                match.Value.Length));
 }
コード例 #3
0
 protected override MatchResult GetMatchingResult(Match match)
 {
     return(MatchResult.CreateMatching(
                new TokenToIgnore(match.Value, TokenType.Whitespace),
                match.Value.Length));
 }
コード例 #4
0
 protected override MatchResult GetMatchingResult(Match match)
 {
     return(MatchResult.CreateMatching(
                new Token(match.Value, TokenType.Identifier),
                match.Value.Length));
 }
コード例 #5
0
 protected override MatchResult GetMatchingResult(Match match)
 {
     return(MatchResult.CreateMatching(
                new Token(match.Value.Trim('"'), TokenType.StringConst),
                match.Value.Length));
 }
コード例 #6
0
 protected override MatchResult GetMatchingResult(Match match)
 {
     return(MatchResult.CreateMatching(
                new TokenToIgnore(match.Value, TokenType.MultiLineComment),
                match.Value.Length));
 }
コード例 #7
0
 protected override MatchResult GetMatchingResult(Match match)
 {
     return(MatchResult.CreateMatching(
                new Token(GetValue(match.Value), TokenType.Symbol),
                match.Value.Length));
 }