Re: Python parsing issue

2017-01-31 Thread Edward K. Ream
On Monday, January 30, 2017 at 10:21:37 AM UTC-6, Kent Tenney wrote:
>
> commit 1c28e916c37153df427e93c8cb97b635f58f5cbd
> declaration appended to class definition, this looks like a bug.
>

Thanks for this report. Please create an official bug report here 
.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Python parsing issue

2017-01-30 Thread Kent Tenney
commit 1c28e916c37153df427e93c8cb97b635f58f5cbd
declaration appended to class definition, this looks like a bug.

a minimal version of what I'm seeing, file test.py:
###
import sys

class Foo():
pass

def __init__(self):
pass

if __name__ == '__main__':

'''
>>> print('ok?'')

'''

print('__main__')


###

When the above is added to a Leo file via @auto test.py,
the parsed version shows in the 'Declarations' node:
import sys

and shows in the 'Class foo' node:

class Foo():

 pass

 @others

if __name__ == '__main__':


 '''

 >>> print('ok?')

 '''


 print('__main__')


Thanks,

Kent

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.