From 93949137166b1571ac5c23f2cbabce88afffd665 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 24 Dec 2002 23:32:02 +0000 Subject: [PATCH] * support quotes around include filenames --- compiler/scanner.pas | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/compiler/scanner.pas b/compiler/scanner.pas index 917669a7f9..40ae95118b 100644 --- a/compiler/scanner.pas +++ b/compiler/scanner.pas @@ -692,11 +692,30 @@ implementation found : boolean; begin current_scanner.skipspace; - hs:=current_scanner.readcomment; - i:=length(hs); - while (i>0) and (hs[i]=' ') do - dec(i); - Delete(hs,i+1,length(hs)-i); + hs:=Trimspace(current_scanner.readcomment); + if hs[1]='''' then + begin + i:=1; + while (i