mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-08 18:46:12 +00:00
Added: AS3 direct editation - verbatim strings @"
This commit is contained in:
@@ -235,6 +235,9 @@ SingleCharacter = [^\r\n\'\\]
|
||||
OIdentifierCharacter = [^\r\n\u00A7\\]
|
||||
Preprocessor = \u00A7\u00A7 {Identifier}
|
||||
|
||||
VerbatimStringCharacter = [^\r\n\"]
|
||||
VerbatimString = "@\"" {VerbatimStringCharacter}* "\""
|
||||
|
||||
NamespaceSuffix = "#" {DecIntegerLiteral}
|
||||
|
||||
RegExp = \/([^\r\n/]|\\\/)+\/[a-z]*
|
||||
@@ -296,6 +299,12 @@ RegExp = \/([^\r\n/]|\\\/)+\/[a-z]*
|
||||
"final" { return new ParsedSymbol(SymbolGroup.IDENTIFIER, SymbolType.FINAL, yytext()); }
|
||||
"native" { return new ParsedSymbol(SymbolGroup.IDENTIFIER, SymbolType.NATIVE, yytext()); }
|
||||
|
||||
|
||||
{VerbatimString} {
|
||||
String verbatimString = yytext();
|
||||
verbatimString = verbatimString.substring(2, verbatimString.length() - 1);
|
||||
return new ParsedSymbol(SymbolGroup.STRING, SymbolType.STRING, verbatimString); }
|
||||
|
||||
/* operators */
|
||||
|
||||
"(" { return new ParsedSymbol(SymbolGroup.OPERATOR, SymbolType.PARENT_OPEN, yytext()); }
|
||||
|
||||
Reference in New Issue
Block a user