Skip to content

Commit

Permalink
Upgrade to tree-sitter-m68k v0.3.1
Browse files Browse the repository at this point in the history
Fixes support for multiple macro args in labels

fixes #15
  • Loading branch information
grahambates committed Jun 27, 2024
1 parent dccced8 commit 74c8231
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
28 changes: 14 additions & 14 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"vscode-languageserver": "^7.0.0",
"vscode-languageserver-textdocument": "^1.0.1",
"vscode-uri": "^3.0.3",
"web-tree-sitter": "^0.20.3",
"web-tree-sitter": "^0.20.8",
"which": "^2.0.2"
},
"scripts": {
Expand All @@ -27,6 +27,6 @@
"devDependencies": {
"@types/minimatch": "^3.0.5",
"@types/which": "^2.0.1",
"tree-sitter-m68k": "^0.3.0"
"tree-sitter-m68k": "^0.3.1"
}
}
5 changes: 5 additions & 0 deletions server/test/formatter/formatters/LabelColonFormatter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,9 @@ describe("LabelColonFormatter", () => {
);
expect(result).toBe("foo\n move d0,d1\n.bar: add d0,d1");
});

it("adds colon in correct place with multiple macro args", async () => {
const result = await doFormat(`foo\\1bar\\2`, "on");
expect(result).toBe("foo\\1bar\\2:");
});
});
Binary file modified server/wasm/tree-sitter-m68k.wasm
Binary file not shown.

0 comments on commit 74c8231

Please sign in to comment.