Skip to content

Commit

Permalink
1. fix deque parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryRiley0 committed Aug 26, 2024
1 parent 330069b commit a0d3c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/gdb_expansion.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { VariableObject } from "./backend";
import { MINode } from "./mi_parse";

const resultRegex = /^([a-zA-Z_\-][a-zA-Z0-9_\-]*|\[\d+\])\s*=\s*/;
const resultRegex = /^([a-zA-Z_\-][a-zA-Z0-9_\-\>\ \<\:]*|\[\d+\])\s*=\s*/;
const variableRegex = /^[a-zA-Z_\-][a-zA-Z0-9_\-]*/;
const errorRegex = /^\<.+?\>/;
const referenceStringRegex = /^(0x[0-9a-fA-F]+\s*)"/;
Expand Down Expand Up @@ -108,7 +108,7 @@ export function expandValue(variableCreate: (arg: VariableObject | string, optio
let newValPos = newValPos1;
if (newValPos2 != -1 && newValPos2 < newValPos1)
newValPos = newValPos2;
if (newValPos != -1 && eqPos > newValPos || eqPos == -1) { // is value list
if (newValPos != -1 && eqPos > newValPos || eqPos == -1 || value.startsWith("std::")) { // is value list
const values = [];
stack.push("[0]");
let val = parseValue();
Expand Down

0 comments on commit a0d3c41

Please sign in to comment.