OSDN Git Service

roast_xml: textの終端判定が上手く行ってなかったんで直した。
authorMyun2 <myun2@nwhite.info>
Sun, 25 Jul 2010 14:04:13 +0000 (23:04 +0900)
committerMyun2 <myun2@nwhite.info>
Sun, 25 Jul 2010 14:04:13 +0000 (23:04 +0900)
roast/include/roast/xml/roast_xml/structure.hpp

index a2bafd7..d57e6c3 100644 (file)
@@ -106,14 +106,23 @@ namespace roast
 
                                repeat< 
                                        seq<
+                                               //      end when tag start.
+                                               test< not<
+                                                       seq<
+                                                               lesser,                         //      <
+                                                               not<exclamation>        //      not !
+                                                       >
+                                               > >,
+
                                                //      text body
                                                push_num<20>,
                                                get_string_end_by<lesser>,
                                                push_num<11>,
 
                                                //      comments
-                                               repeat<comment>,
+                                               repeat<comment>
 
+                                               /*
                                                //      end when tag start.
                                                test< not<
                                                        seq<
@@ -121,6 +130,7 @@ namespace roast
                                                                not<exclamation>        //      not !
                                                        >
                                                > >
+                                               */
                                        >
                                >
                        > text;