diff options
author | Alex <devnull@localhost> | 2014-08-15 12:15:11 +0300 |
---|---|---|
committer | Alex <devnull@localhost> | 2014-08-15 12:15:11 +0300 |
commit | 37368d865858e12278cc31f8bb6b46d27d63fb2c (patch) | |
tree | a2cddb01c7f5b176578e194b8e8cd3e187e6e399 /tests/examplefiles | |
parent | b5bc6c6d441b87f1b2cce478cd4de3c3143eac3a (diff) | |
download | pygments-37368d865858e12278cc31f8bb6b46d27d63fb2c.tar.gz |
[Elixir] Update the example file
Diffstat (limited to 'tests/examplefiles')
-rw-r--r-- | tests/examplefiles/example_elixir.ex | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/examplefiles/example_elixir.ex b/tests/examplefiles/example_elixir.ex index 41de83e5..3c3d72f3 100644 --- a/tests/examplefiles/example_elixir.ex +++ b/tests/examplefiles/example_elixir.ex @@ -60,7 +60,7 @@ atom" # Operators x = 1 + 2.0 * 3 -y = true and false; z = false xor true +y = true and false; z = false or true ... = 144 ... == !x && y || z "hello" |> String.upcase |> String.downcase() @@ -94,7 +94,7 @@ end # Identifiers abc_123 = 1 _018OP = 2 -A__0 = 3 +A__0 == 3 # Modules defmodule Long.Module.Name do @@ -103,7 +103,12 @@ defmodule Long.Module.Name do @doc """ Multiline docstring "with quotes" - and #{ %{"interpolation" => "in" <> "action"} } + and #{ inspect %{"interpolation" => "in" <> "action"} } + now with #{ {:a, 'tuple'} } + and #{ inspect { + :tuple, + %{ with: "nested #{ inspect %{ :interpolation => %{} } }" } + } } """ defstruct [:a, :name, :height] |