changed: in SpaceParser:

white characters can be escaped by '\ ' and in such a case this is not a delimiter
         (when reading single token)


git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@410 e52654a7-88a9-db11-a3e9-0013d4bc506e
master
Tomasz Sowa 11 years ago
parent 11ddf0f6d9
commit 5d9ce6e093

@ -409,11 +409,11 @@ void SpaceParser::ReadTokenSingle(bool white_delimit, bool new_line_delimit, int
if( lastc == commentary )
SkipLine();
if( lastc == -1 ||
(white_delimit && IsWhite(lastc)) ||
(!char_was_escaped &&
if( lastc == -1 ||
(!char_was_escaped &&
(
lastc == list_end ||
(white_delimit && IsWhite(lastc)) ||
(new_line_delimit && lastc == '\n') ||
(delimit1 != -1 && lastc == delimit1) ||
(delimit2 != -1 && lastc == delimit2)

Loading…
Cancel
Save