To compare apples with apples, you should also add this line after the definition withstringend:
withstringend.ignore('#' + p.restOfLine)
I think you will see that it has the same behavior as your parsing test with unquotedKey.
ignore - , . , C :
x ++;
, :
x ++
;
, , :
for (x = ptr;
*x;
x++ )
, , ignore() , . ignore , .
, , :
more = p.OneOrMore(unquotedKey)
more.ignore('
ignorables unquotedKey. unquotedKey, , more, :
more = p.OneOrMore(unquotedKey.copy())
- , " , ". 1.5.6, excludeChars Word. , Word . :
unquotedKey = p.Word(p.printables,
excludeChars = r'\"' + "':/|<>,;#")