Skip to content

Commit

Permalink
asm_compile gotos
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephAbbey committed Jun 24, 2023
1 parent f679fa0 commit 990fd41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scratch-vhdl-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"publisher": "JosephAbbey",
"displayName": "Scratch VHDL",
"description": "",
"version": "0.2.8",
"version": "0.2.9",
"license": "MIT",
"engines": {
"vscode": "^1.65.0"
Expand Down
4 changes: 2 additions & 2 deletions scratch-vhdl-vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ export function activate(context: vscode.ExtensionContext) {
}
);
output = output.replace(
/ --> [a-zA-Z]:[\\\/](?:[^\\\/<>:"|?*\s]+[\\\/])*(?:[^\\\/<>:"|?*\s]+\.asm):\x1b\[0m\x1b\[90m(\d+):(\d+)/g,
/ --> ([a-zA-Z]:[\\\/](?:[^\\\/<>:"|?*\s]+[\\\/])*(?:[^\\\/<>:"|?*\s]+\.asm)):\x1b\[0m\x1b\[90m(\d+):(\d+)/g,
(_, file, line, column) =>
` --> ${file}:<button class="a" onclick="window.goto(${file},${
line - 1
},${column - 1})">${line}:${column}</button>`
);

output = output.replace(
/ --> [a-zA-Z]:[\\\/](?:[^\\\/<>:"|?*\s]+[\\\/])*(?:[^\\\/<>:"|?*\s]+\.asm):\x1b\[0m\x1b\[90m(\d+):(\d+)/g,
/ --> ([a-zA-Z]:[\\\/](?:[^\\\/<>:"|?*\s]+[\\\/])*(?:[^\\\/<>:"|?*\s]+\.asm)):\x1b\[0m\x1b\[90m(\d+):(\d+)/g,
(_, file, line, column) =>
` --> ${file}:<button class="a" onclick="window.goto(${file},${
line - 1
Expand Down

0 comments on commit 990fd41

Please sign in to comment.