From 152ec152cdde6fc15ba011908e2a50eef9998eea Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 26 Feb 2018 13:30:24 +0100 Subject: [PATCH] Reorder some lexical analysis calls. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- lexer/syntactic_analyzer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lexer/syntactic_analyzer.c b/lexer/syntactic_analyzer.c index 5f14600..ae3251a 100644 --- a/lexer/syntactic_analyzer.c +++ b/lexer/syntactic_analyzer.c @@ -1,7 +1,6 @@ /* Syntactic analyzer */ #include -#include #include #include "global_vars.h" @@ -47,10 +46,10 @@ static void analyze_P() { #if PRINT_TOKEN wprint_ctoken(stdout); #endif /* PRINT_TOKEN */ - scanner(); if (target != NULL) { fputws(L"

\n", target); } + scanner(); analyze_TEXT(); if (target != NULL) { fputws(L"\n

\n", target); @@ -84,8 +83,8 @@ static void analyze_HEAD() { #if PRINT_TOKEN wprint_ctoken(stdout); #endif /* PRINT_TOKEN */ - scanner(); fputws(L"", target); } else if (tokenType != NPARA && tokenType != SECTION && tokenType != FIN) { -- 2.34.1