Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] code coloring in the js editor with regexp

Hi,
 
dont know about other languages so i first ask if this is know or already working in other implementations.
If you have this:
 
 var myData = globals.curChartDataHTML.replace(/[^<]*(<a href="" '$5'); 
 var installdir = java.lang.System.getProperty("user.dir");
 installdir = utils.stringReplace(installdir,'\\','\/');
 
then the color coding in the script editor is wrong because it sees in the regexp a opening " without an ending so everything after that is marked as a string.
 
Do other scripting languages also work with regexp like that?
I guess i need to have a scanner that sees / xxx /g as there own thing?
 
johan
 

Back to the top