Topic: SYN-file: recognizing comments... (1 of 3), Read 28 times
Conf: VEDIT Macro Language Support
From: Michael Baas
Date: Wednesday, August 13, 2003 09:48 AM

I hope this is the appropriate board for the topic...
I would like to define a SYN-File for Inno Setup (www.jrsoftware.org)
and have a problem with handling inline comments, since they are
seperated from rest of the line by a simple ';'. ; however is also used
to seperate multiple parameters. So a comment would be anything that
starts ";", optionally followed by whitespace and NOT followed by a
reserved name.

Any ideas how to do this? (I thought about using a matching code which
would contain all the reserved names, but then I noticed that features
like "not matching.." are RegExp and are not provided by the code
matching available for SYN.)

Cheers

Michael

 


Topic: Re: SYN-file: recognizing comments... (2 of 3), Read 28 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Wednesday, August 13, 2003 01:05 PM

At 09:50 AM 8/13/2003, you wrote:
>I hope this is the appropriate board for the topic...
>I would like to define a SYN-File for Inno Setup (www.jrsoftware.org)
>and have a problem with handling inline comments, since they are
>seperated from rest of the line by a simple ';'. ; however is also used
>to seperate multiple parameters. So a comment would be anything that
>starts ";", optionally followed by whitespace and NOT followed by a
>reserved name.

This does not appear to be possible; sorry.
Frankly, a proper syntax should never depend upon later elements. Such a syntax would flunk any course on compiler design. (Sorry to rant and rave.)

I try to accommodate unusual languages, but that is going too far.

Ted.

 


Topic: AW: SYN-file: recognizing comments... (3 of 3), Read 28 times
Conf: VEDIT Macro Language Support
From: Michael Baas
Date: Wednesday, August 13, 2003 01:12 PM

> Sorry to rant and rave.

No problem, I agree with you :-)

Cheers

Michael