Commits

megajoule committed bbb99ac

A few fix-ups for the updated ElixirLexer files

  • Participants
  • Parent commits b9d98b9

Comments (0)

Files changed (3)

File pygments/lexers/functional.py

 
         # these are also valid sigil terminators, they are not balanced
         terms = [
-            (r'\/', 'slas'), (r'\|', 'pipe'), ('"', 'quot'), ("'", 'apos'),
+            (r'/', 'slas'), (r'\|', 'pipe'), ('"', 'quot'), ("'", 'apos'),
         ]
 
         # heredocs have slightly different rules, they are not balanced

File tests/examplefiles/example_iex

-iex> :" multi
-...>  line ' \s \123 \x20
-...> atom"
-:" multi\n line '   S  \natom"
-
-iex(1)> <<"hello"::binary, c :: utf8, x::[4, unit(2)]>> = "hello™1"
-"hello™1"
-
-iex(2)> c
-8482
-
-iex> 1 + :atom
-** (ArithmeticError) bad argument in arithmetic expression
-    :erlang.+(1, :atom)
-
-iex(3)> 1 +
-...(3)> 2 +
-...(3)> 3
-6
-
-iex> IO.puts "Hello world"
-Hello world
-:ok

File tests/examplefiles/iex_example

+iex> :" multi
+...>  line ' \s \123 \x20
+...> atom"
+:" multi\n line '   S  \natom"
+
+iex(1)> <<"hello"::binary, c :: utf8, x::[4, unit(2)]>> = "hello™1"
+"hello™1"
+
+iex(2)> c
+8482
+
+iex> 1 + :atom
+** (ArithmeticError) bad argument in arithmetic expression
+    :erlang.+(1, :atom)
+
+iex(3)> 1 +
+...(3)> 2 +
+...(3)> 3
+6
+
+iex> IO.puts "Hello world"
+Hello world
+:ok