id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
2145	JavaScript highlighting bug in regexp.	baryluk		"Consider this simple example file.js:

{{{
function f(a) {
   var r = /'/;
  return r.test(a);
}
}}}

This is correct javascript code which search for occurrence of ' or returns null if there is no such.

mcedit incorrectly highlights ' (green) in the /'/, and assumes it is string which continues beyond end of regexp (including comments, and probably to the end of file).

[[Image(http://smp.if.uj.edu.pl/~baryluk/mcedit-js-highlight-bug/Def_030.png)]]

All examples here: http://smp.if.uj.edu.pl/~baryluk/mcedit-js-highlight-bug/

Thanks.
"	defect	new	minor	Future Releases	mcedit	master				2142		no branch	
