diff options
author | Andrea Leopardi <an.leopardi@gmail.com> | 2018-03-27 12:32:42 +0200 |
---|---|---|
committer | Andrea Leopardi <an.leopardi@gmail.com> | 2018-03-27 12:32:42 +0200 |
commit | ae6fb479b5f9600a7dea1daba4995d27407e793f (patch) | |
tree | 069cc4159679b8605d87430547f0de56a6a6b8f2 | |
parent | 91e8a76bfb5f064bd28b15e85f4ac5e84848b2b5 (diff) | |
download | elixir-ae6fb479b5f9600a7dea1daba4995d27407e793f.tar.gz |
Remove a useless guard in elixir_tokenizer
-rw-r--r-- | lib/elixir/src/elixir_tokenizer.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/elixir/src/elixir_tokenizer.erl b/lib/elixir/src/elixir_tokenizer.erl index 97bb399ba..8f7af796d 100644 --- a/lib/elixir/src/elixir_tokenizer.erl +++ b/lib/elixir/src/elixir_tokenizer.erl @@ -1142,8 +1142,7 @@ terminator('<<') -> '>>'. check_keyword(_Line, _Column, _Atom, [{'.', _} | _], _Rest) -> nomatch; -check_keyword(DoLine, DoColumn, do, - [{Identifier, {Line, Column, Meta}, Atom} | T], _Rest) when Identifier == identifier -> +check_keyword(DoLine, DoColumn, do, [{identifier, {Line, Column, Meta}, Atom} | T], _Rest) -> {ok, add_token_with_eol({do, {DoLine, DoColumn, nil}}, [{do_identifier, {Line, Column, Meta}, Atom} | T])}; check_keyword(_Line, _Column, do, [{'fn', _} | _], _Rest) -> |