Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[formatter] Fix missing parser error when running the binary #20471

Merged
merged 3 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix incorrect parser name + rename the AST
  • Loading branch information
damirka committed Nov 29, 2024
commit 19ac5a68bc80766960ea5d3f65d3f26f5a88d465
5 changes: 5 additions & 0 deletions .changeset/soft-days-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/prettier-plugin-move': patch
---

Fixes missing parser for move-parser error
4 changes: 2 additions & 2 deletions external-crates/move/tooling/prettier-move/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ export const parsers: { [key: string]: PrettierParser } = {
})();
},

astFormat: 'move-format',
astFormat: 'move',
locStart: () => -1,
locEnd: () => -1,
},
};

export const printers: { [key: string]: Printer } = {
'move-format': { print },
'move': { print },
};

export const options: Record<string, SupportOption> = {
Expand Down
Loading