Page 1 of 1

syntax.cgi 'to-do' list

Posted: Sun Feb 11, 2007 3:11 pm
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?

Posted: Sun Feb 11, 2007 5:49 pm
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

Posted: Sun Feb 11, 2007 6:21 pm
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... :-)