Fix currently edited file source code printing. Add some info about resolving imported packages.
Append ".in" suffix to syntactically invalid test input files. This makes my local triggers happy (otherwise they will try to `go fmt` them and fail, and it's becoming annoying now).
An expression is now better defined in terms of allowed tokens. This fixes the issues with parsing things like `x := fmt.#`, which is currently broken (ref #212).
Most notably, I noticed that `if fmt.#` was not working correctly. I added a test case and fixed the code.
Instead of loosely parsing strings, we are now parsing AST tokens direclty. This should make the context detection much more robust, and allow for easier extensions later on.
This allows autocompletion of member names when initializing a struct, as long as the members are defined one per line. ref #117
…system_function should be set as string of function name instead of function reference.
…s, then use that.