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
1045
1045
# Don't add the closing parenthesis to the snippet if the cursor is
1046
1046
# immediately before a valid argument. This usually happens when we
1047
1047
# 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 ) ->
1049
1049
"#{ name } ("
1050
1050
1051
1051
true ->
@@ -1235,7 +1235,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
1235
1235
defp use_name_only? ( module_name , function_name ) do
1236
1236
module_name in @ use_name_only or { module_name , function_name } in @ use_name_only or
1237
1237
String . starts_with? ( function_name , "__" ) or
1238
- function_name =~ ~r/ ^[^\p {L}]+$/
1238
+ function_name =~ ~r/ ^[^\p {L}]+$/ u
1239
1239
end
1240
1240
1241
1241
defp sort_items ( items ) do
@@ -1255,7 +1255,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do
1255
1255
# _underscored_function
1256
1256
# __MODULE__
1257
1257
# operators
1258
- { priority , label =~ ~r/ ^[^\p {L}]/ , label }
1258
+ { priority , label =~ ~r/ ^[^\p {L}]/ u , label }
1259
1259
end )
1260
1260
end
1261
1261
You can’t perform that action at this time.
0 commit comments