Fixed: #2311 AS1/2 p-code freezing on highlighting ConstantPool

This commit is contained in:
Jindra Petřík
2024-09-16 06:36:00 +02:00
parent 6166566fc6
commit 513b2aba46
3 changed files with 11 additions and 1 deletions

View File

@@ -147,6 +147,14 @@ public class AbstractDocs {
while (true) {
startPos = lexer.yychar();
symb = lexer.lex();
if (symb.type == ParsedSymbol.TYPE_DOTS) {
endPos = lexer.yychar() + 3;
break;
}
if (symb.type == ParsedSymbol.TYPE_EOF) {
endPos = lexer.yychar();
break;
}
if (symb.type == ParsedSymbol.TYPE_BRACKET_OPEN) {
while (symb.type != ParsedSymbol.TYPE_BRACKET_CLOSE && symb.type != ParsedSymbol.TYPE_EOF) {
symb = lexer.lex();

View File

@@ -458,7 +458,7 @@ action.constantpool.shortDescription=Create a new constant pool
action.constantpool.description=
action.constantpool.stackBefore=
action.constantpool.stackAfter=
action.constantpool.operands=constant1:STRING, constant2:STRING, ...
action.constantpool.operands=constant1:STRING, [constant2:STRING, ...]
action.definefunction.name=DefineFunction
action.definefunction.code=0x9B
action.definefunction.swfVersion=5