Hi all, i'm further developing the QtCreator nim plugin and i hope to complete the automatic indentation this week. Right now i basically have a syntax highlighter and a very rough Lexer).
However a simple lexer is not enough for good quality highlighter. One example is how to know if a given identifier is a local variable, a typename or a function name.
I quickly read the nimsuggest documentation but it seems to me that there's not way for identify if a given identifier is a type or a local variable etc. is it correct? or am i missing something?
pretty sad i'm facing the issue you posted :( NimSuggest seems pretty hackish at the moment.
I don't even understand why we should pass a project file on start. I think that it should act as a service. In my particular case i'm thinking to spawn it when my plugin starts and then later i query infos for a particular file. So right now i'm creating a temporary .nim file for starting it.
I think i'll move on and develop QtCreator project management interfaces for Nim and leave auto completion at a later stage (or develop my own simpler nim parser/scanner) :|