Hi folks,
Quick question: I'd like to import a couple of big files into leo.
The source language is Lua. A typical contained function looks like:
-------------------------------------------------------------------------
--- Some Big Function
-- @name ...
-- @class ...
[snip]
-- @variable ...
function SomeBigFunction()
....
end
--- Next Big Function
-- @...
-------------------------------------------------------------------------
and so on. I'd love to write a custom import which took the first
function and rendered a child node as:
-------------------------------------------------------------------------
@
- Some big function
@name ...
@class ....
...
@c
function SomeBigFunction()
....
end
-------------------------------------------------------------------------
So, I've been importing everything as a @file (but later changing to
@shadow to remove the sentinals). Couple of questions:
1) How would I write an importer for this?
2) Would this be a plugin instead?
3) At one point, I thought leo had a leo.leo file that loaded up all
the source. Was that a long time ago?
Any help appreciated.
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---