From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.bugs Subject: bug#12568: 24.2.50; semantic parser and python conditional expressions Date: Sat, 06 Oct 2012 23:40:39 +0200 Message-ID: <87fw5r9t48.fsf@engster.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1349559709 27336 80.91.229.3 (6 Oct 2012 21:41:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2012 21:41:49 +0000 (UTC) Cc: 12568@debbugs.gnu.org To: Stefan =?UTF-8?Q?Reich=C3=B6r?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 06 23:41:55 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TKc8B-0001KL-ID for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Oct 2012 23:41:55 +0200 Original-Received: from localhost ([::1]:50293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKc85-0001q0-Oq for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Oct 2012 17:41:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKc82-0001pp-JM for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 17:41:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKc81-0003KI-0d for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 17:41:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKc80-0003Je-OY for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 17:41:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TKc8I-00089s-Ot for bug-gnu-emacs@gnu.org; Sat, 06 Oct 2012 17:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Engster Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Oct 2012 21:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12568-submit@debbugs.gnu.org id=B12568.134955966331270 (code B ref 12568); Sat, 06 Oct 2012 21:42:02 +0000 Original-Received: (at 12568) by debbugs.gnu.org; 6 Oct 2012 21:41:03 +0000 Original-Received: from localhost ([127.0.0.1]:58679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKc7L-000888-Af for submit@debbugs.gnu.org; Sat, 06 Oct 2012 17:41:03 -0400 Original-Received: from randomsample.de ([83.169.19.17]:42166) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TKc7J-00087a-9V for 12568@debbugs.gnu.org; Sat, 06 Oct 2012 17:41:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=cSFG7bSR9w9a2swFl3Zy/VBbGn0Fl6AgpCXeFr5Empg=; b=XMU5LbPZ3djVTQUvTzFGeFkaBnjPK6+MT5AwQI+b8tLybo1lpki6uX+Uvejllo82iCkP/TDR9LdqUoKqwYWv3d2puXqXRy+jtQ3aI4fJB/1V+dbWzA862xE1air1hlTW; Original-Received: from dslc-082-083-042-151.pools.arcor-ip.net ([82.83.42.151] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TKc6y-0007sE-Lx; Sat, 06 Oct 2012 23:40:40 +0200 In-Reply-To: ("Stefan \=\?iso-8859-1\?Q\?Reich\=F6r\?\= \=\?iso-8859-1\?Q\?\=22's\?\= message of "Wed, 03 Oct 2012 14:43:51 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65298 Archived-At: Stefan Reich=F6r writes: > How to reproduce the bug: > C-x C-f 1.py RET > M-x semantic-mode RET > >>>> file content for 1.py > etags_cmd =3D "c:/emacs/bin/etags.exe" if cRunningOnWindows else "etags" >>>> end file content > > This gives the following error: > > Idle Parse Error: "# - wisent-python-lexer: endless loop > at 13, after (STRING_LITERAL 13 . 13)" I'm afraid I currently cannot reproduce this, using Emacs from bzr, revno. 110397. Loading 1.py and enabling semantic-mode does not give me any error. Also, calling M-x semantic-lex-test correctly returns ((NAME 1 . 10) (ASSIGN 11 . 12) (STRING_LITERAL 13 . 37) (IF 38 . 40) (NAME 41 . 58) (ELSE 59 . 63) (STRING_LITERAL 64 . 71) (NEWLINE 71 . 72)) so the lexer seems to work fine. -David