From 12d27ad637adc012be5f1f00989b3aaf409bdc37 Mon Sep 17 00:00:00 2001 From: Myun2 Date: Sat, 25 Dec 2010 16:58:00 +0900 Subject: [PATCH] =?utf8?q?web/css=5Fattributes.hpp:=20=E3=83=91=E3=83=BC?= =?utf8?q?=E3=82=BB=E3=83=B3=E3=83=88=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- roast/include/roast/web/css_attributes.hpp | 7 +++++++ roast/test/lexical_test/css_test.cpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/roast/include/roast/web/css_attributes.hpp b/roast/include/roast/web/css_attributes.hpp index 354d0c8e..3604a54a 100644 --- a/roast/include/roast/web/css_attributes.hpp +++ b/roast/include/roast/web/css_attributes.hpp @@ -46,12 +46,19 @@ namespace roast ROAST_CSS_STR_DEF(pc) // 1pc=12pt ROAST_CSS_STR_DEF(px) // 1px=0.75pt + typedef ::roast::lexical::rule::chars::percent percent; + ///// template struct pxx_ : seq {}; template struct px_ : pxx_ > {}; + + template + struct percentx_ : seq {}; + template + struct percent_ : percentx_ > {}; } ///////////////////////////////////////////////////////// diff --git a/roast/test/lexical_test/css_test.cpp b/roast/test/lexical_test/css_test.cpp index 9691b501..e14fc1ab 100644 --- a/roast/test/lexical_test/css_test.cpp +++ b/roast/test/lexical_test/css_test.cpp @@ -25,7 +25,7 @@ int main() //padding_, px_<10>, px_<10> > a; padding_px_<10,20,30,8> a; - border_ > b; + border_ > b; //float_string<132,58,2> a; //num_string<592116> a; //unit::px_<10> a; -- 2.11.0