I'm using leo in a new project with c, python and cython. Of course, c and python and well supported in leo's with file directives, but cython is not (except for syntax coloring, which is great!).Can anyone point in the right direction of the leo's code if I wanted to add such support (which be 98% equivalent to python)?
By support, I meant by support is that leo would parse the file into an outline (like a regular python file).
Just tested it. Works great. Thank you so much, Edward, that was awesome!
There are several additional improvements that should be made:- The ctor of the python importer (on which the cython importer is based) doesn't handle the "language" kwarg properly.- The cython importer honors @bool put-cython-decorators-in-imported-headlines. I'll add this setting to leoSettings.leo.- c.recursiveImport probably should be able to override this setting (and the corresponding setting in the python importer).
On Saturday, June 20, 2020 at 3:58:23 AM UTC-5, Edward K. Ream wrote:
There are several additional improvements that should be made:T
- The ctor of the python importer (on which the cython importer is based) doesn't handle the "language" kwarg properly.- The cython importer honors @bool put-cython-decorators-in-imported-headlines. I'll add this setting to leoSettings.leo.- c.recursiveImport probably should be able to override this setting (and the corresponding setting in the python importer).
Wow. That's awesome Edward. It's just amazing how responsive you are, and leo, after all these years, is still my go to editor when I need to keep the complexity under control. Thank you.