stanza-tools / language-stanza

L.B.Stanza Language support in Atom
1 stars 0 forks source link

autocomplete support #4

Open MadcapJake opened 8 years ago

MadcapJake commented 8 years ago

autocomplete-plus is builtin to Atom now and we could hook in and provide completions for:

We could even hinge what functions/types are shown based on what imports are in the defpackage block.

sumit0190 commented 8 years ago

Is this why quite a few builtin types and functions are not being highlighted ATM? lostanza, call-c, new, return, ptr, and pretty much all of the lostanza types are at present just being displayed like variable names.

MadcapJake commented 8 years ago

I tried desperately to accomplish providing those keywords only inside a lostanza prefixed block/line but I couldn't get it to work. Atom (nor really any editor I'm aware of) is incapable of recognizing the beginning and end of an indented block. I tried numerous tricks but in the end decided that I would just put them in as regular tokens. It's also important to note that had I gotten anything to work, it would have likely been quite a performance burden.

I'll push my updates and bump the version right now.

MadcapJake commented 8 years ago

@sumit0190 there ya go! I pushed a new version with lostanza and some other stuff. This issue is just a reminder that I want to also add autcomplete support. Meaning you'll get friendly suggestions whenever you start typing.

sumit0190 commented 8 years ago

Awesome! I'll try it out first thing tomorrow. Thanks!