ethereum / fe

Emerging smart contract language for the Ethereum blockchain.
https://fe-lang.org
Other
1.61k stars 187 forks source link

Create a syntax highlighting plugin for VS Code #272

Open cburgdorf opened 3 years ago

cburgdorf commented 3 years ago

What is wrong?

It would be nice to have basic syntax highlighting for Fe in VS Code.

How can it be fixed

Create a plugin following this guide:

https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide

There's also a vscode-vyper plugin that might be a good starting point to fork and adjust.

mjobuda commented 3 years ago

I took a look at vscode-vyper, it is a hacked together python mode. So I forked it and started to hack it: https://github.com/mjobuda/vscode-fe I haven't change any syntax rules yet, but vyper highlighting for Fe already does something: image

mjobuda commented 3 years ago

published what is on the marketpace, https://marketplace.visualstudio.com/items?itemName=MarekOwsikowski.vscode-fe

g-r-a-n-t commented 3 years ago

Thanks for getting this started @mjobuda