Skip to content

Commit a0d3c41

Browse files
committed
1. fix deque parse error
1 parent 330069b commit a0d3c41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/gdb_expansion.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { VariableObject } from "./backend";
22
import { MINode } from "./mi_parse";
33

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

0 commit comments

Comments
 (0)