Example #1
0
        public void CStyleIdentifiersMayStartWithLeadingUnderscore()
        {
            var input = new TextSpan("_cStyle1!");
            var r     = Identifier.CStyle(input);

            Assert.Equal("_cStyle1", r.Value.ToStringValue());
        }
Example #2
0
        public void CStyleIdentifiersAreMatched()
        {
            var input = new TextSpan("C_Style!");
            var r     = Identifier.CStyle(input);

            Assert.Equal("C_Style", r.Value.ToStringValue());
        }