Emacs: Allow for legacy type checking in Emacs michelson-mode.
Context
When working with Michelson in Emacs, it's sometimes useful to view legacy contracts and inspect stack types just as it is when developing new smart contracts. This MR introduces an option to enable --legacy
flag when type checking scripts from within michelson-mode
, thus displaying a correct type information instead of an error for legacy contracts.
Manually testing the MR
- Open a smart contract in Emacs. Initially it is type checked without
--legacy
flag. Callmichelson-legacy-mode
interactive function to enable--legacy
flag.Call the same function again to disable it.- Verify that
michelson-extra-flags
variable can be customised and allows for adding the--legacy
flag.
Checklist
-
Select suitable reviewers using the Reviewers
field below. -
Select as Assignee
the next person who should take action on that MR
Edited by Sventimir