File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/language_server/lib/language_server/providers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1045,7 +1045,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
10451045 # Don't add the closing parenthesis to the snippet if the cursor is
10461046 # immediately before a valid argument. This usually happens when we
10471047 # want to wrap an existing variable or literal, e.g. using IO.inspect/2.
1048- ! snippets_supported? || Regex . match? ( ~r/ ^[\p {L}0-9_:"'%<@\[ \{ ]/ , text_after_cursor ) ->
1048+ ! snippets_supported? || Regex . match? ( ~r/ ^[\p {L}0-9_:"'%<@\[ \{ ]/ u , text_after_cursor ) ->
10491049 "#{ name } ("
10501050
10511051 true ->
@@ -1235,7 +1235,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
12351235 defp use_name_only? ( module_name , function_name ) do
12361236 module_name in @ use_name_only or { module_name , function_name } in @ use_name_only or
12371237 String . starts_with? ( function_name , "__" ) or
1238- function_name =~ ~r/ ^[^\p {L}]+$/
1238+ function_name =~ ~r/ ^[^\p {L}]+$/ u
12391239 end
12401240
12411241 defp sort_items ( items ) do
@@ -1255,7 +1255,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
12551255 # _underscored_function
12561256 # __MODULE__
12571257 # operators
1258- { priority , label =~ ~r/ ^[^\p {L}]/ , label }
1258+ { priority , label =~ ~r/ ^[^\p {L}]/ u , label }
12591259 end )
12601260 end
12611261
You can’t perform that action at this time.
0 commit comments