Skip to content

Fix locator for function defined by macro ending with ? or ! - #344

Open
katafrakt wants to merge 1 commit into
elixir-lsp:masterfrom
katafrakt:support-definition-in-using-with-bang-and-question-mark
Open

Fix locator for function defined by macro ending with ? or !#344
katafrakt wants to merge 1 commit into
elixir-lsp:masterfrom
katafrakt:support-definition-in-using-with-bang-and-question-mark

Conversation

@katafrakt

Copy link
Copy Markdown
Contributor

The regex added in #330/#333 does not catch functions ending with ? or ! as \b stops at the word boundary. This changes it to use negative lookahead to also consume the ending character for these functions.

Issue found via Expert.

@katafrakt

Copy link
Copy Markdown
Contributor Author

Looks like there are some unrelated CI failures in newest 1.20 line 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant