Bug 199856 - Token position bugs
Summary: Token position bugs
Status: RESOLVED FIXED
Alias: None
Product: DLTK
Classification: Technology
Component: Python (show other bugs)
Version: 0.95   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dltk.python-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-08-14 07:34 EDT by Leonty CLA
Modified: 2010-06-11 07:32 EDT (History)
1 user (show)

See Also:


Attachments
patch (7.34 KB, patch)
2007-08-14 07:34 EDT, Leonty CLA
alex.panchenko: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leonty CLA 2007-08-14 07:34:36 EDT
Created attachment 76034 [details]
patch

Build ID: I20070625-1500

Steps To Reproduce:
1. Type the following scripts in the python editor:
a=1
while a>0 : a=a-1
#-----------------
a=1
while a>0 : a=a-1
else : a = 1
#------
print "hello,", "world"

2. Watch the ASTOutline view: the while statements and test list expression are highlighted improperly.

More information:
All while statements PythonTestListExpression's are considered beginning from the very beginning of the script.
Comment 1 Andrei Sobolev CLA 2007-08-17 08:18:00 EDT
applied.
Comment 2 Andrey Platov CLA 2008-05-26 02:55:52 EDT
bulk change: downgrading 1.0 to 0.95