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

@@ -16,7 +16,7 @@
</define>
<define append="true">
<name>CONFIG::timeStamp</name>
<value>'10.02.2021'</value>
<value>'11.02.2021'</value>
</define>
<define append="true">
<name>CONFIG::air</name>

View File

@@ -16,7 +16,7 @@
</define>
<define append="true">
<name>CONFIG::timeStamp</name>
<value>'10.02.2021'</value>
<value>'11.02.2021'</value>
</define>
<define append="true">
<name>CONFIG::air</name>

View File

@@ -102,6 +102,7 @@ package
TestThisOutsideClass;
TestImports;
TestInitializer;
TestRegexpHilight;
public function Main()
{

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);
}
}
}