Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KOmLT-0006vr-PB for mharc-grub-devel@gnu.org; Fri, 01 Aug 2008 00:34:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOmLS-0006vA-HV for grub-devel@gnu.org; Fri, 01 Aug 2008 00:34:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOmLQ-0006ul-6C for grub-devel@gnu.org; Fri, 01 Aug 2008 00:34:25 -0400 Received: from [199.232.76.173] (port=47668 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOmLQ-0006uh-0K for grub-devel@gnu.org; Fri, 01 Aug 2008 00:34:24 -0400 Received: from ti-out-0910.google.com ([209.85.142.189]:52966) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOmLP-00069z-KW for grub-devel@gnu.org; Fri, 01 Aug 2008 00:34:23 -0400 Received: by ti-out-0910.google.com with SMTP id u5so207404tia.10 for ; Thu, 31 Jul 2008 21:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Sy+EJYc/g7l/coZnr6GcMWcsqIobCP9RdwxERJhuUdc=; b=EwIpTEkilRmeY41jDTQYD7rlYXgi5y3F8zz8jj1omdm3civBMnsefSxkFU9REOLtgo IFIoko47HhbKJ1sVFsGcdm7G+sQnnJ93S5qfiZObSIzIWmcC9920Mjtdx8Hkjh7I/n62 Tdwtlg1UIUIRz8zYXhjDRTff99ssccRb6zy0Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=BFk8gwB7FzxuxEGGMWpbRbeEmNyUmA0/YDw0D2XL+B58KENylPakPUzpFSV5jz/KSH qo67Q1s575cAk+kT56q+wl5GQvxk1f5mNpZwgVWENkuUGZc8IBqFPKshziPyA3ccAg6Q IUe8e3ny6d9zmYGaA5JOXgZl4iu8r6gD+iBWA= Received: by 10.110.7.18 with SMTP id 18mr8558764tig.32.1217565260893; Thu, 31 Jul 2008 21:34:20 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Thu, 31 Jul 2008 21:34:20 -0700 (PDT) Message-ID: Date: Fri, 1 Aug 2008 12:34:20 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <4892907B.8020204@coresystems.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4892907B.8020204@coresystems.de> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: slight oddity in script parser X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2008 04:34:26 -0000 On Fri, Aug 1, 2008 at 12:26 PM, Stefan Reinauer wrote: > Bean wrote: >> On Fri, Aug 1, 2008 at 7:48 AM, Patrick Georgi wrote: >> >>> Hi, >>> >>> I forgot this, so sorry for the separate mail: >>> Currently, the parser expects comments to start at the beginning of the >>> line, so "ls /foo # necessary because of baz" doesn't work properly >>> >>> I think a good scenario would be to have comments start either on "#" at >>> pos0, or on " #". This way, ls /foo#bar continues to work. >>> >>> Also, currently the following is a single comment, which is an unusual >>> feature: >>> # this comment starts here\ >>> and continues on this line >>> >> >> Hi, >> >> Actually, # and \ is handled in the read line function, it can't >> handle complicated situation. >> > > Are you implying it is wrong there and should be moved to the parser? Hi, In theory, it should be handled by the lexer. but actually, it's not so easy. lexer already has some issue, adding new handling would not help. -- Bean