From b58abe30d0e0bde495b4ca66d9bb976500d2b0ca Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Sun, 5 Nov 2017 18:04:52 +0100 Subject: [PATCH] Issue #403 - Special DEBUG change to 'see' tabs --- src/lexer.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lexer.c b/src/lexer.c index 05fc509..b1f7437 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -63,6 +63,9 @@ static tmbstr get_text_string(Lexer* lexer, Node *node) if (c == '\n') { buffer[i++] = '\\'; buffer[i++] = 'n'; + } else if (c == '\t') { + buffer[i++] = '\\'; + buffer[i++] = 't'; } else if ( c == ' ' ) { if (!insp) buffer[i++] = c; @@ -84,6 +87,9 @@ static tmbstr get_text_string(Lexer* lexer, Node *node) if (c == '\n') { buffer[i++] = '\\'; buffer[i++] = 'n'; + } else if (c == '\t') { + buffer[i++] = '\\'; + buffer[i++] = 't'; } else if ( c == ' ' ) { if (!insp) buffer[i++] = c; @@ -116,6 +122,9 @@ static tmbstr get_text_string(Lexer* lexer, Node *node) if (c == '\n') { buffer[i++] = '\\'; buffer[i++] = 'n'; + } else if (c == '\t') { + buffer[i++] = '\\'; + buffer[i++] = 't'; } else if ( c == ' ' ) { if (!insp) buffer[i++] = c;