From 6033ea1046b6a18b699cc0d7afe0b0beebd75ffd Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 17 Sep 2015 16:25:43 +0200 Subject: [PATCH] * Added comment support (starting with #) --- restemplate.lpr | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/restemplate.lpr b/restemplate.lpr index b00445d..3a0b829 100644 --- a/restemplate.lpr +++ b/restemplate.lpr @@ -306,8 +306,11 @@ begin while not EOF(data) do begin ReadLn(data, line); - if commandMode and (line <> '') and not ProcessCommand(line) then + if commandMode and (line <> '') and (line[1] <> '#') and + not ProcessCommand(line) then + begin commandMode := False; + end; if not commandMode then content.Add(line);