[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[Dltk-dev] Re: code coloring in the js editor with regexp
|
i just noticed:
public
abstract class ScriptRegExpRule extends PatternRule
Which project uses that (i dont have it all checked out)
Can a sub impl work for js?
johan
On Mon, May 4, 2009 at 16:14, Johan Compagner
<jcompagner@xxxxxxxxx> wrote:
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