-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix prefix parsing to start method completion when typing
#
(#1363)
* Add a test illustrating issue #1358 Object methods are not completed * Fix prefix parsing for method call When completing module paths or record fields Merlin expects the beginning of the path and the `.` to be part of the prefix. But when accessing an object's methods, the prefix should not contain the `#` sign. We use a sub-matching group to that effect. - Prefix for [my_record.|] is ["my_record."] (handled by [name_or_label]) - Prefix for [my_object#|] is [""] (handled by [method_call]) * Changelog entry for #1363 Fixes #1358
- Loading branch information
Showing
3 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters