Commander Pirx | 3 Jul 16:20
Picon

[Spirit] chset_p

Hi all,

I've detected a strange behavior of Spirit using (VC9SP1). I assume that

chset_p( "-_!#$%&*+|~" ) and
chset_p( "!#$%&*+-_|~" )

are identical. I've only changed the order of the characters a little bit. 
But when i'm trying to parse a string like "abcd-edfg: " the parser eats the 
':' sign but shouldn't. Examples here:

   token_  = alnum_p | chset_p( "-_!#$%&*+|~" );

//    the line above works fine

   token_ = alnum_p | chset_p( "!#$%&*+-_|~" );

//    here the ':' sign will be consumed!

Thanx. 

Gmane