コード例 #1
0
        // We create a Comment node for CSS comments `/* */`,
        // but keep the LeSS comments `//` silent, by just skipping
        // over them.
        public Comment Comment(Parser parser)
        {
            var    index   = parser.Tokenizer.Location.Index;
            string comment = parser.Tokenizer.GetComment();

            if (comment != null)
            {
                return(NodeProvider.Comment(comment, comment.StartsWith("//"), index));
            }

            return(null);
        }