Fixed: #1159 Regexp syntax hilight when not a regexp (only division)

This commit is contained in:
Jindra Petřík
2021-02-11 08:11:18 +01:00
parent af974e2eaa
commit 21dfcfc15c
10 changed files with 69 additions and 7 deletions

View File

@@ -0,0 +1,23 @@
package tests_classes
{
/**
* ...
* @author JPEXS
*/
public class TestRegexpHilight
{
public function run():void
{
var myregexp:RegExp = /[a-z0-9_]+/;
var a:Number = 10;
var b:Number = 20;
var notaregexp:Number = a / b + b / a;
trace(myregexp);
trace(notaregexp);
}
}
}