SourceForge.net wrote:
Bugs item #1660229, was opened at 2007-02-14 21:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1660229&group_id=2439
...
The line in the file...

$aComponents = array(61, "Microsoft Multimedia DTCs", 'VIntDev98\bin\', "MMDTC.DLL", 
"d6aa0038665ad6901333a3e1145fa4d8", "2F5BD3B2-5F75-11D1-8C4C-00A0C959BC0A", VB_COMPONENT);

Compare that to the highlighting that occurs with the same line...

$aComponents = array(61, "Microsoft Multimedia DTCs", "VIntDev98\\bin\\", "MMDTC.DLL", 
"d6aa0038665ad6901333a3e1145fa4d8", "2F5BD3B2-5F75-11D1-8C4C-00A0C959BC0A", VB_COMPONENT);

The second one highlights things properly.

I'm not really sure that this is really a bug, and there might be an easy fix, 
I'm just don't have the time to play around with this at the moment and 
discover things.

I posted either a feature request or a bug or something else awhile back but it 
seems to have disappeared. I'm not sure what happened to it... but the link 
was...

http://sourceforge.net/tracker/index.php?func=detail&aid=1644810&group_id=2439&atid=352439

Thanks for any help, comments, suggestions.

You seem to think there might be a bug in Scintilla/SciTE? Do you actually know your PHP? Because all I can see in your exemplar snippet is that backslashes AT THE END of a single-quoted PHP string literal need to be escaped - with a backslash, i.e., doubled. ;)

From the PHP manual @ php.net:

"If a backslash needs to occur before a single quote or at the end of the string, you need to double it. Note that if you try to escape any other character, the backslash will also be printed! So usually there is no need to escape the backslash itself."

So while Scintilla may not observe the niceties of how UNNECESSARY backslashes are "compressed" in single-quoted strings, it does not mess up the string parsing... but NOT quoting backslashes at the end of a single-quoted string is user error. This does make sense if you think about it, since otherwise it looks like you want an *embedded* single quote, right?

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to