syntax.cgi 'to-do' list

Notices and updates
Locked
cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

syntax.cgi 'to-do' list

Post by cormullion »

From syntax.cgi:
# the following situations are not handled correctly:
# - nested curly braces for strings like {abd{def}ghi}
# - multiline quoted strings, use [text] [/text] instead
# - multiline braced strings, use [text] [/text] instead
# - comments starting with # but not starting at beginning of line
# use ; as comment starter when comment appears after code
I noticed these small things that don't work currently. Is this because they're too difficult/hard, or rather that the fixes will be made when there are less pressing things?

I was thinking of trying to adapt the code to generate pretty-printing for a document. I wasn't sure whether these rare situations would be a problem.

Is there room for a more general-purpose syntax-highlighting script that would be able to be customized to produce different types of markup?

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

They are hard to implement and no implementation is planned at the moment.

At least in my source, this has not represented a problem.

Lutz

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

I agree- a lot of effort for very small reward? The only one of these I might have used is the nested {} in strings: I think I've used these in regular expressions sometimes...

I'll see how I get on trying to convert it to another way of formatting code... (TeX... :-)

Locked