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
This commit is contained in:
parent
11ddf0f6d9
commit
5d9ce6e093
|
@ -410,10 +410,10 @@ void SpaceParser::ReadTokenSingle(bool white_delimit, bool new_line_delimit, int
|
||||||
SkipLine();
|
SkipLine();
|
||||||
|
|
||||||
if( lastc == -1 ||
|
if( lastc == -1 ||
|
||||||
(white_delimit && IsWhite(lastc)) ||
|
|
||||||
(!char_was_escaped &&
|
(!char_was_escaped &&
|
||||||
(
|
(
|
||||||
lastc == list_end ||
|
lastc == list_end ||
|
||||||
|
(white_delimit && IsWhite(lastc)) ||
|
||||||
(new_line_delimit && lastc == '\n') ||
|
(new_line_delimit && lastc == '\n') ||
|
||||||
(delimit1 != -1 && lastc == delimit1) ||
|
(delimit1 != -1 && lastc == delimit1) ||
|
||||||
(delimit2 != -1 && lastc == delimit2)
|
(delimit2 != -1 && lastc == delimit2)
|
||||||
|
|
Loading…
Reference in New Issue