diff options
author | Andrea Leopardi <an.leopardi@gmail.com> | 2016-09-21 11:11:16 +0200 |
---|---|---|
committer | Andrea Leopardi <an.leopardi@gmail.com> | 2016-09-21 11:11:16 +0200 |
commit | dd78780363bba0fa33d95375ef9eb55a9014471f (patch) | |
tree | 45dae9cbdaa255ab51bc2e0d98d977633771d43f | |
parent | 904e89782dcde18463b1306e6fe47a0798d55e7f (diff) | |
download | elixir-dd78780363bba0fa33d95375ef9eb55a9014471f.tar.gz |
Fix a few typos introduced in 904e89782dcde18463b1306e6fe47a0798d55e7f
-rw-r--r-- | lib/elixir/lib/inspect.ex | 2 | ||||
-rw-r--r-- | lib/elixir/src/elixir_tokenizer.erl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/elixir/lib/inspect.ex b/lib/elixir/lib/inspect.ex index 9f3b9b08d..d009c0d06 100644 --- a/lib/elixir/lib/inspect.ex +++ b/lib/elixir/lib/inspect.ex @@ -429,7 +429,7 @@ defimpl Inspect, for: Regex do do: escape(rest, buf <> <<?\\, term>>, term) # the list of characters is from "String.printable?" impl - # minus characters treated especially by regex: \s, \d, \b, \e + # minus characters treated specially by regex: \s, \d, \b, \e defp escape(<<?\n>> <> rest, buf, term), do: escape(rest, <<buf::binary, ?\\, ?n>>, term) diff --git a/lib/elixir/src/elixir_tokenizer.erl b/lib/elixir/src/elixir_tokenizer.erl index 07b9b491d..df466a374 100644 --- a/lib/elixir/src/elixir_tokenizer.erl +++ b/lib/elixir/src/elixir_tokenizer.erl @@ -554,7 +554,7 @@ handle_dot([$., T | Rest], Line, Column, DotColumn, Scope, Tokens) when ?rel_op(T); ?match_op(T); ?pipe_op(T); T == $% -> handle_call_identifier(Rest, Line, Column + 1, DotColumn, 1, list_to_atom([T]), Scope, Tokens); -% ## Exception for .( as it needs to be treated especially in the parser +% ## Exception for .( as it needs to be treated specially in the parser handle_dot([$., $( | Rest], Line, Column, DotColumn, Scope, Tokens) -> tokenize([$( | Rest], Line, Column + 2, Scope, add_token_with_nl({dot_call_op, {Line, DotColumn, DotColumn + 1}, '.'}, Tokens)); @@ -791,7 +791,7 @@ tokenize_comment([_ | Rest]) -> tokenize_comment(Rest); tokenize_comment([]) -> []. %% Atoms -%% Handle atoms especially since they support @ +%% Handle atoms specially since they support @ tokenize_atom(T, Acc) -> tokenize_atom(T, Acc, 0). |