Preserve "\n" in continued lines.

Set a flag if parser encounters [expr].
This commit is contained in:
David F. Skoll
2008-03-15 14:06:12 -04:00
parent d818dd9c80
commit af81bbb299
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -71,7 +71,7 @@ typedef struct {
/* The parse pointer */
typedef struct {
char isnested; /* Is it a nested expression? */
char isnested; /* Is it a nested expression? */
char allownested;
char const *text; /* Start of text */
char const *pos; /* Current position */
@@ -79,6 +79,7 @@ typedef struct {
char const *epos; /* Position in substituted text */
DynamicBuffer pushedToken; /* Pushed-back token */
char const *tokenPushed; /* NULL if no pushed-back token */
char expr_happened; /* Did we encounter an [expression] ? */
} Parser;
typedef Parser *ParsePtr; /* Pointer to parser structure */