bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12568: 24.2.50; semantic parser and python conditional expressions


From: Stefan Reichör
Subject: bug#12568: 24.2.50; semantic parser and python conditional expressions
Date: Mon, 08 Oct 2012 09:18:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Hello David!

> Stefan Reichör 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 = "c:/emacs/bin/etags.exe" if cRunningOnWindows else "etags"
>>>>> end file content
>>
>> This gives the following error:
>>
>> Idle Parse Error: "#<buffer 1.py> - 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

I can confirm that it works for me as well with a freshly compiled emacs.

Thanks for your efforts,
  Stefan.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]