Lukasa / language-restructuredtext

A ReStructuredText syntax package for Atom
MIT License
27 stars 15 forks source link

autocompletion #35

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

autocompletion does not work for me, when your package is active.

That is, it does work if I type "le..." for example - but not for anything else...

Any help?

screenshot

Lukasa commented 8 years ago

So, does typing image<tab> not work?

ghost commented 8 years ago

Hi, sorry, image works fine. But I want also completion for unspecific words -- for anything that has already been typed in this buffer before (or in other buffers).

Not only completion of "keywords", but also completion for "anything already appearing anywhere else"...

Lukasa commented 8 years ago

Oh I see. It's not clear to me how this package could possibly affect that.

ghost commented 8 years ago

But it does, I think. Because, for me, in other grammars/languages autocompletion works just fine...

Any idea to whom this might be clear of how to find out?

Lukasa commented 8 years ago

I think you'd have to get someone who knows Atom very deeply to take a look.

ghost commented 8 years ago

Hi, thanks Lukasa, Maybe you are right. But I guess, it would also have been possible to track down the error. Anyway - just forget about it. Not so important. I will try to find a workaround. Thanks for your help anyway. Regards, Sven

Alhadis commented 8 years ago

I'm wondering if this is the culprit. Here, in the package settings for autocomplete-plus:

Figure 1

Note the blacklist's default setting: .source.gfm. Recall that this package is also using .source.gfm (this was brought up in #20).

Lukasa commented 8 years ago

Heh, that's entirely possible as a problem.

Alhadis commented 8 years ago

I'm in the middle of... uh, reStructuring the entire grammar. Part of the matching problems I'm seeing (particularly with tables and substitution references) are to do with pattern ordering as much as their scope.

I've changed the scope to the original value of text.restructuredtext. When this is done, I'll look into having this grammar used to supply syntax highlighting on GitHub, which will address the highlighting issue Luthaf raised in #13.