fix errors in imported elixir mode

This commit is contained in:
nightwing 2014-11-02 15:04:55 +04:00
commit 399e25ceaf
3 changed files with 43 additions and 22 deletions

View file

@ -1 +1,24 @@
TODO add a nice demo!
defmodule HelloModule do
# A "Hello world" function
def some_fun do
IO.puts "Juhu Kinners!"
end
# A private function
defp priv do
is_regex ~r"""
This is a regex
spanning several
lines.
"""
x = elem({ :a, :b, :c }, 0) #=> :a
end
end
test_fun = fn(x) ->
cond do
x > 10 ->
:greater_than_ten
true ->
:maybe_ten
end
end