From: Andy T. <tu...@mi...> - 2004-07-07 09:37:27
|
When one uses save_c and the checks for a match using &, usually & just matches the saved character. But there are special cases for the beginning of paired characters, like "(", "[", etc. The problem is that joe thinks that "`" is the start of a paired character (paired with "'") but Perl does not. This is a reasonable thing to think for some other languages (like M4). I can see two ways to deal with this. 1) Change nothing. Make special cases in the jsf files for "`". Advantages: Don't have to make the highlighting language any more complicated. Disadvantages: Special cases mean lots of extra states. 2) Add a special char like "&" that just matches what save_c saved and doesn't try to find the other part of a pair. Advantages: Languages that don't use the "`'" pair have significantly simpler jsf files. Disadvantages: Syntax highlighting language gets more complicated. Adding a work around for "`" to the existing Perl jsf file increases its size by about 36 lines. If the work around seems like the way to go then I'll post a patch that includes it. -- Andy <tu...@mi...> |