syntax.cgi 'to-do' list

Started by cormullion, February 11, 2007, 07:11:09 AM

Previous topic - Next topic

cormullion

From syntax.cgi:


Quote# 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

#1
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

#2
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... :-)