Re: Trying to create a new language with udl

Markus Dahlbokum <[email protected]>
Newsgroups gmane.comp.ide.komodo.general
Organization Intes
Message-ID <[email protected]>
Hi,

I've tried a little more and found that I have to edit 
the 'kopermas_UDL_Language.py', too. I mapped markup languages to 'permas'.
Then I installed the new package and now komodo crashes. At least a good sign 
my code is used :-)

I'm getting closer but I still need some help.
Thank you,
Markus




> Hello,
>
> I'm trying to create a new language with syntaxhighlighting. I'm new to
> Luddite so I'm running into problems.
>
> What I've done so far:
> - I've downloaded the latest Komodo edit (5.0.2)
> - I used 'koext startext'
>   and 'koext startlang' to create the base files
> - I edited the .udl files:
>
> permas-mainlex.udl:
> # UDL for permas
>
> language permas
>
> #...
> include 'permasDAT.udl'
>
>
> permasDAT.udl:
> # UDL for permasDAT
>
> family markup
> sublanguage permas
>
> start_style M_DEFAULT
> end_style M_COMMENT
>
> state IN_M_DEFAULT:
> '!' : paint(upto, M_DEFAULT), => IN_DAT_COMMENT
>
> state IN_DAT_COMMENT:
> '\n' : paint(upto, M_COMMENT), => IN_M_DEFAULT
>
>
>
> - Then I buit the package with 'koext buid' (no errors)
>
> Finally I installed the .xpi file and opened a file - no colored output!
> As far as I understand the udl files should switch to the DAT_COMMENT if a
> '!' is found. Then everything up to the end of line ist painted as
> M_COMMENT.
>
> What am I doing wrong???
>
> Thanks for your help,
> Markus
> _______________________________________________
> Komodo-discuss mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Other options:
> http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
_______________________________________________
Komodo-discuss mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.