Re: Trying to create a new language with udl

Eric Promislow <[email protected]>
Newsgroups gmane.comp.ide.komodo.general
Message-ID <[email protected]>
Markus Dahlbokum wrote:
> Hi Eric,
> 
> thank you for the help. The code you sent works fine. You mentioned to put the 
> udl file into the dir where I execute koext. This was not necessary in my 
> case. But I got some other problems. Komodo edit 5.0.2 colors the lines 
> correctly but then crashes. V4.2.1 works fine. So I'm doing my work on 4.2.1 
> now (I chose this version because you don't need GLIBC_2.4).

Could you send me that version of the UDL files so I can determine why it's
crashing?  And file a bug report at
http://bugs.activestate.com/enter_bug.cgi?product=Komodo ?

> 
> Next I tried to switch the code you sent me to SSL family (style names would 
> fit better):
> 
> ########################################################
> # UDL for permas
> 
> language permas
> 
> family SSL
> initial IN_SSL_DEFAULT
> 
> sublanguage permas
> 
> start_style SSL_DEFAULT
> end_style SSL_VARIABLE
> 
> state IN_SSL_DEFAULT:
> '!' : paint(upto, SSL_DEFAULT), => IN_DAT_COMMENT
> 
> state IN_DAT_COMMENT:
> /[\r\n]/ : paint(upto, SSL_COMMENT), paint(include, SSL_DEFAULT), => 
> IN_SSL_DEFAULT
> 
> ########################################################
> 
> The build works but no coloring. Same with CSL. Any Ideas?

Could you file another bug on this?

> 
> For my syntax coloring it is important to match strings ignoring the case. The 
> luddite docu says regular expressions are perl like. So I tried:
> i/pattern/ : paint...
> but this is invalid syntax for luddite. How can I do this?

/pattern/i

- Eric
_______________________________________________
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.