Fixed: #2536 AS3 regexp highlighting / compilation

This commit is contained in:
Jindra Petřík
2025-09-30 19:59:21 +02:00
parent 165b0f9db5
commit cd352e12f7
6 changed files with 547 additions and 552 deletions

View File

@@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
### Fixed
- [#2536] AS3 switches detection incorrectly replaces basic ifs with strict equals
- [#2536] AS3 switches detection not handling loops
- [#2536] AS3 regexp highlighting / compilation
## [24.1.0] - 2025-09-28
### Added

Binary file not shown.

View File

@@ -241,7 +241,7 @@ VerbatimString = "@\"" {VerbatimStringCharacter}* "\""
NamespaceSuffix = "#" {DecIntegerLiteral}
RegExp = \/([^\r\n/]|\\\/)+\/[a-z]*
RegExp = \/([^\r\n/\\]|\\.)+\/[a-z]*
%state STRING, CHARLITERAL,XMLOPENTAG,XMLCLOSETAGFINISH,XMLOPENTAGATTRIB,XMLINSTR,XMLCDATA,XMLCOMMENT,XML,OIDENTIFIER,XMLCDATAALONE,XMLCOMMENTALONE

View File

@@ -135,7 +135,7 @@ Preprocessor = \u00A7\u00A7 {Identifier}
NamespaceSuffix = "#" {DecIntegerLiteral}
RegExp = \/([^\r\n/]|\\\/)+\/[a-z]*
RegExp = \/([^\r\n/\\]|\\.)+\/[a-z]*
%state STRING, CHARLITERAL, XMLSTARTTAG, XML, OIDENTIFIER, ADOC, ADOC_TAG

View File

@@ -146,7 +146,7 @@ Preprocessor = \u00A7\u00A7 {Identifier}
NamespaceSuffix = "#" {DecIntegerLiteral}
RegExp = \/([^\r\n/]|\\\/)+\/[a-z]*
RegExp = \/([^\r\n/\\]|\\.)+\/[a-z]*
VerbatimStringCharacter = [^\r\n\"]
VerbatimString = "@\"" {VerbatimStringCharacter}* "\""