Hello.
We are doing some amazing development work here with a new language called Relish that is pretty sweet to use despite annoying the <bleep> outta me occasionally. Getting Zeus set up for it was pretty much a slam-dunk after following your walk-through here:
http://www.zeusedit.com/zforum/viewtopic.php?t=176
However, one of the "features" of the language is Python-like block comments using """ to start and """ to end. (I will keep my own thoughts to myself about who thinks it's a good idea to use the same string to start and end comments, much less use a VERY commonly used character like ".) Okay, this is cool. Except that putting """ and """ in the Comment Details of the Keywords dialog just doesn't seem to work for me. So I looked up how it's done for Python. And it's not defined at ALL for Python so how is it being done? Is it something completely separate like some sort of docstring recognition?
One thing I did try that didn't work was try to define that the start string was ^""" and the end string """$ but of course that was a no-go because there's only 3 characters allowed and it doesn't use regex parsing anyways.
Also, what's the difference between Comment Details #1 and #2? Is it just so that there can be multiple comment strings defined for really complicated languages?
Thanks,
Alan
New Language Setup - Block Comment defining
-
- Posts: 83
- Joined: Fri Jun 02, 2006 6:52 pm
Hi Alan,
I could not agree with you more. From an editor's point of view that pattern and choice of character is about as hard as it gets to parse
Yep. The original Zeus was only every designed to have one block comment (based on c/c++). That worked fine for many years, until of course, language designers starting creating new languages with mulitple ways of doing block commenting
Cheers Jussi
I will keep my own thoughts to myself about who thinks it's a good idea to use the same string to start and end comments, much less use a VERY commonly used character like
I could not agree with you more. From an editor's point of view that pattern and choice of character is about as hard as it gets to parse

In your new language defintion just go to the Keywords section turn on the Enable triple quotes optionAnd it's not defined at ALL for Python so how is it being done?

Also, what's the difference between Comment Details #1 and #2? Is it just so that there can be multiple comment strings defined for really complicated languages?
Yep. The original Zeus was only every designed to have one block comment (based on c/c++). That worked fine for many years, until of course, language designers starting creating new languages with mulitple ways of doing block commenting

Cheers Jussi
-
- Posts: 83
- Joined: Fri Jun 02, 2006 6:52 pm
Is THAT what that means? I'd never thought to try it. Thanks!In your new language defintion just go to the Keywords section turn on the Enable triple quotes option.
I'm not sure what's worse, new ideas to try new things, even if they are bad ideas, at least it's *trying*; or copying old ideas *especially* when they are bad ideas, even if they are now "the standard".... new languages with mulitple ways of doing block commenting.