Vyper: Suggestion: replace .v.py with a custom viper extension

Created on 10 Nov 2017  路  8Comments  路  Source: vyperlang/vyper

Relying on the .py extension may bring problems down the road with both people and tools confusing Viper source code with Python. Possible alternatives: .viper, .vi

Cute Animal Picture

article-2418451-1bc5dd92000005dc-964_634x421

That's a dog with a cute hair extension.

Feature enhancement

Most helpful comment

Out of curiosity I created a bare-bones vim plugin for .vy files. Should cover most syntax cases but I haven't tested it thoroughly. The extension can be changed easily, especially considering the name change issue @fubuloubu mentioned.

All 8 comments

We had .vy in mind. However, someone needs to do all the work of creating GitHub syntax highlighters, vim plugins, etc etc with our language. If you want to be that person, be my guest.

The language is still growing and changing however, so I think the idea was to create a formal syntax spec a little later on to base all of these things on. I welcome any work someone is willing to do to figure out what would be required when we reach that point though.

Good, thanks for taking the time to respond @fubuloubu, I really appreciate it. For the moment I am more focused on Solidity, and some of these suggestions come from the lessons I learned along the way. It becomes much more difficult to change things once the language starts getting traction.

@federicobond Very valid point, I have been really fond of the .v.py because it just highlights immediately - we will definitely reach the point to adopt .vy and I'll help with syntax highlighting templates where I can.
@fubuloubu So it's looking up for using .vy looking at it's uniqueness: https://github.com/search?utf8=%E2%9C%93&q=extension%3Avy+NOT+nothack&type=Code

Is there a way to register that extension with GitHub? Perhaps we should do that now

Dang, the requirement to have 1000s of usage examples will definitely require a lot of promoting in Beta phase. Totally makes sense from GitHub's standpoint, but it looks like we can't do anything now to get Viper in there other than to keep doing what we're doing and making a great language.

I think with the potential name change issue we have as well as not being in Beta yet, .v.py works for now.

Out of curiosity I created a bare-bones vim plugin for .vy files. Should cover most syntax cases but I haven't tested it thoroughly. The extension can be changed easily, especially considering the name change issue @fubuloubu mentioned.

@chgue are you still interested in keeping that vim plugin maintained ?

I have started updating all the outdated things, like the name & keywords. And will gladly PR it over to your repo - if you feel like maintaining it. Otherwise I will run with my own copy.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pipermerriam picture pipermerriam  路  3Comments

lsaether picture lsaether  路  4Comments

nrryuya picture nrryuya  路  4Comments

nrryuya picture nrryuya  路  3Comments

jacqueswww picture jacqueswww  路  4Comments