fix errors in imported elixir mode
This commit is contained in:
parent
4da689e71b
commit
399e25ceaf
3 changed files with 43 additions and 22 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue