Hi Edward
On Tuesday, February 21, 2017 at 5:37:10 PM UTC, Edward K. Ream wrote:
>
> On Tuesday, February 21, 2017 at 9:18:17 AM UTC-6, Edward K. Ream wrote:
>
> > parse-body should warn if @language python is not in effect.
>
> Done at dedcc73. Actually, parse-body warns if there is no parser for the
> present language. That is, parse-body will work for any language for which
> there is a parser in leo/plugins/importers.
>
> At present, parse-body will crash if the to-be-parsed node contains
> children:
>
> File "c:\leo.repo\leo-editor\leo\plugins\importers\linescanner.py",
> line 175, in get_lines
> return p.v._import_lines
> AttributeError: 'VNodeBase' object has no attribute '_import_lines'
>
> No a big deal now--parse-body recovers from the error.
>
> It will be straightforward to fix this. Probably later today.
>
> Edward
>
>
Thanks for this. I was going to suggest the behavior you describe :
> Actually, parse-body warns if there is no parser for the present
language. That is, parse-body will work for any language for which there is
a parser in leo/plugins/importers
as I would like to experiment with using parse-body on non-python body text.
I have a suspicion I may be using this quite a bit in the future...
Regards
Jon N
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.