mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 04:44:50 +00:00
Fixed: #1159 Regexp syntax hilight when not a regexp (only division)
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -102,6 +102,7 @@ package
|
||||
TestThisOutsideClass;
|
||||
TestImports;
|
||||
TestInitializer;
|
||||
TestRegexpHilight;
|
||||
|
||||
public function Main()
|
||||
{
|
||||
|
||||
23
libsrc/ffdec_lib/testdata/as3_new/src/tests_classes/TestRegexpHilight.as
vendored
Normal file
23
libsrc/ffdec_lib/testdata/as3_new/src/tests_classes/TestRegexpHilight.as
vendored
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user