Commits

David Mugnai committed acc0d6b

slam/parser: qi::space eats \n too

  • Participants
  • Parent commits 385b2e6

Comments (0)

Files changed (1)

         // matches at least _r1 spaces -> expose the number of matched spaces
         indent = (qi::repeat(_r1, qi::inf)[qi::blank])[_val = phx::size(_1)];
 
-        attributes_list = qi::skip(qi::space)[
+        attributes_list = qi::skip(qi::blank)[
             (
                 qi::omit[delimiters[_a = _1]]
                 >> *attribute
                 > qi::omit[qi::char_(_a)]
             )
-            | *attribute];
+            | *attribute
+        ];
         attribute = qi::skip(qi::space)[attribute_name >> "=" >> attribute_value];
         attribute_name = identifier.alias();
         attribute_value = quoted_string.alias();