[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Dltk-dev] code coloring in the js editor with regexp
|
everything you need can be found under here:
http://code.google.com/p/perlipse/source/browse/#svn/trunk/org.perlipse.ui/src/org/perlipse/internal/ui/text
if there are parts of that code that will work for js, then we should see how to best refactor b/c i'm sure they will be useful to others as well.
On Mon, May 4, 2009 at 10:34 AM, Johan Compagner
<jcompagner@xxxxxxxxx> wrote:
in what language?
Can you port it to js? ;) :)
johan
On Mon, May 4, 2009 at 16:24, Jae Gangemi
<jgangemi@xxxxxxxxx> wrote:
i had this same problem. i solved it by creating additional document partitions for strings and regexps (w/ the regexp rule taking priority over the string rule) and wiring up a 'color' token to the specific document partition.
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
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev
--
-jae
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev
--
-jae