newLISP Fan Club

Forum => newLISP newS => Topic started by: cormullion on February 11, 2007, 07:11:09 AM

Title: syntax.cgi 'to-do' list
Post by: cormullion on February 11, 2007, 07:11:09 AM
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?
Title:
Post by: Lutz on February 11, 2007, 09:49:20 AM
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
Title:
Post by: cormullion on February 11, 2007, 10:21:39 AM
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... :-)