예제 #1
0
        // Assignments are argument entities for calls.
        // They are present in ie filter properties as shown below.
        //
        //     filter: progid:DXImageTransform.Microsoft.Alpha( *opacity=50* )
        //
        public Assignment Assignment(Parser parser)
        {
            var key = parser.Tokenizer.Match(@"\w+(?=\s?=)");

            if (!key || !parser.Tokenizer.Match('='))
            {
                return(null);
            }

            var value = Entity(parser);

            if (value)
            {
                return(NodeProvider.Assignment(key.Value, value));
            }

            return(null);
        }