Skip to content

Commit

Permalink
a few more renames
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Nov 2, 2023
1 parent 70360bb commit 5be3ef3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 32,909 deletions.
1 change: 1 addition & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
elixir_sense_parser.erl
4 changes: 2 additions & 2 deletions src/elixir_sense.erl
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ quoted_to_erl(Quoted, Env, Scope) ->
%% Converts a given string (charlist) into quote expression

string_to_tokens(String, StartLine, StartColumn, File, Opts) when is_integer(StartLine), is_binary(File) ->
case elixir_tokenizer:tokenize(String, StartLine, StartColumn, [{file, File} | Opts]) of
case elixir_sense_tokenizer:tokenize(String, StartLine, StartColumn, [{file, File} | Opts]) of
{ok, _Line, _Column, Warnings, Tokens} ->
[elixir_errors:erl_warn(L, F, M) || {L, F, M} <- lists:reverse(Warnings)],
{ok, Tokens};
Expand All @@ -392,7 +392,7 @@ string_to_tokens(String, StartLine, StartColumn, File, Opts) when is_integer(Sta
tokens_to_quoted(Tokens, WarningFile, Opts) ->
handle_parsing_opts(WarningFile, Opts),

try elixir_parser:parse(Tokens) of
try elixir_sense_parser:parse(Tokens) of
{ok, Forms} ->
{ok, Forms};
{error, {Line, _, [{ErrorPrefix, ErrorSuffix}, Token]}} ->
Expand Down
2 changes: 1 addition & 1 deletion src/elixir_sense_interpolation.erl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extract([$\\, $#, ${ | Rest], Buffer, Output, Line, Column, Scope, true, Last) -

extract([$#, ${ | Rest], Buffer, Output, Line, Column, Scope, true, Last) ->
Output1 = build_string(Buffer, Output),
case elixir_tokenizer:tokenize(Rest, Line, Column + 2, Scope#elixir_tokenizer{terminators=[]}) of
case elixir_sense_tokenizer:tokenize(Rest, Line, Column + 2, Scope#elixir_tokenizer{terminators=[]}) of
{error, {EndLine, EndColumn, _, "}"}, [$} | NewRest], Warnings, Tokens} ->
NewScope = Scope#elixir_tokenizer{warnings=Warnings},
Output2 = build_interpol(Line, Column, EndLine, EndColumn, lists:reverse(Tokens), Output1),
Expand Down
Loading

0 comments on commit 5be3ef3

Please sign in to comment.