dethcrypto / dethcode

View source of deployed Ethereum contracts in VSCode
https://etherscan.deth.net/address/0xa3a7b6f88361f48403514059f1f16c8e78d60eec#code
1.36k stars 105 forks source link

Preload extension adding syntax highlighting to vyper #16

Closed krzkaczor closed 2 years ago

krzkaczor commented 2 years ago

Orginal request: https://twitter.com/wei3erHase/status/1471530138231844869

hasparus commented 2 years ago

Vyper's extension doesn't work in the web. We can fork it and try to enable it by removing, but there is an alternative solution — using Python's syntax highlighting for .vy extension.

krzkaczor commented 2 years ago

Are they compatible on syntax level?

hasparus commented 2 years ago

Are they compatible on syntax level?

Actually, I think we'd have to base some edits to the grammar on Vyper repo anyway. The approach I decided to go with after some research and consideration is forking the Vyper extensions (and possibly contributing the change upstream).

krzkaczor commented 2 years ago

Done via: https://github.com/dethcrypto/ethereum-code-viewer/pull/30