zacharytamas / atom-django

Build Django apps faster with Atom.
29 stars 15 forks source link

#6: Improves grammar #7

Closed taylon closed 9 years ago

taylon commented 9 years ago

Hey @benjohnson @jpells @zacharytamas here is the first pull request for #6

It greatly improves the grammar:

I also added keywords to the package.json file to improve package discovery (http://blog.atom.io/2015/03/30/keywords-on-atom-io.html)

Let me know if you guys have any suggestions to further improve this =D

taylon commented 9 years ago

Hey @zacharytamas

These scripts will never be executed or used by atom. The idea is to use them to update Django settings and shortcuts functions in the grammar when a new version comes out. They may not even be effective actually but I included them since I wrote it anyway to extract that from the source code.

Basically you would run the script, and it would generate something like this:

AutoField|BigIntegerField|BinaryField|BooleanField|CharField|CommaSeparatedIntegerField

Then you copy it into the grammar file.

zacharytamas commented 9 years ago

Ah okay. I thought maybe you were training Atom to introspect settings.py files in project folders and learn their variables for highlighting/autocomplete purposes.