Пример #1
0
        public Token ParseToken(string line)
        {
            Token token = ToToken(line);

            if (TokenMatcher.Match_FeatureLine(token) ||
                TokenMatcher.Match_ScenarioLine(token) ||
                TokenMatcher.Match_ScenarioOutlineLine(token) ||
                TokenMatcher.Match_BackgroundLine(token) ||
                TokenMatcher.Match_ExamplesLine(token) ||
                TokenMatcher.Match_StepLine(token) ||
                TokenMatcher.Match_TagLine(token) ||
                TokenMatcher.Match_TableRow(token) ||
                SimpleMatchLanguage(token) ||
                TokenMatcher.Match_DocStringSeparator(token))
            {
                return(token);
            }

            return(token);
        }