On Thu, Apr 17, 2008 at 7:50 PM, TL <[EMAIL PROTECTED]> wrote: > > I'm updating my local copy of the trunk to add support for the > AutoHotkey language to Leo. It appears that the documentation in the > leoNotes.txt file for adding support for a new language is outdated.
Correct. The notes apply only when not using the new colorizer plugin. > Here is what I've done. Is anything else necessary? > > The following structures were updated in leoApp.py: > self.language_delims_dict > self.language_extension_dict > self.extension_dict > > and an ahk.xml and ahk.py file was added to the leo\modes directory. > > With these changes I get correct syntax highlighting using "@language ahk" > and by also setting the language as the default language in > myLeoSettings.leo. If you get correct highlighting, then you must have done the correct thing :-) And indeed you have. > Is it also necessary to test: > "Test workings of the Preferences Panel by..." and > "Test the leoconfig.txt by setting default_target_language..." and > "Create an @root node and verify that you can tangle it."? Interesting. All these seem out of date. Tangling any kind of file (@root, @file, @thin depends on comment delimiters, and you have set those by updating the data in leoApp.py. Of course, testing is good :-) I'll review the docs immediately. Edward --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
