GNU bug report logs - #21840
24.5; semantic analysis of python files is broken by strings that end in backslash

Previous Next

Package: emacs;

Reported by: Glyph Lefkowitz <glyph <at> twistedmatrix.com>

Date: Fri, 6 Nov 2015 02:18:01 UTC

Severity: normal

Found in version 24.5

Full log


Message #8 received at 21840 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Glyph Lefkowitz <glyph <at> twistedmatrix.com>
Cc: 21840 <at> debbugs.gnu.org
Subject: Re: bug#21840: 24.5; semantic analysis of python files is broken by
 strings that end in backslash
Date: Thu, 03 Dec 2020 11:46:06 +0100
Glyph Lefkowitz <glyph <at> twistedmatrix.com> writes:

> Python string literals that end in a backslash cause Semantic's parser
> to halt and not recognize anything further in the buffer.  I personally
> ran across this because I frequently use helm-semantic-or-imenu, but can
> be demonstrated equally well by semantic-complete-jump-local or anything
> else that makes use of the buffer's symbol list.
>
> The trivial way to reproduce this is to put the string literal "\\" at
> the top of a Python buffer and then invoke semantic in one of the ways
> just mentioned and notice that nothing is picked up.  You can move the
> backslash literal down in the file and see every symbol up to the point
> where it is placed.

(This bug report unfortunately got no response at the time.)

Do you have a step-by-step recipe to reproduce this bug, starting from
"emacs -Q"?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.