1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-05 13:05:18 +02:00
chroma/lexers/testdata/elixir.actual
Tiemen Waterreus 2365845022 Improve Elixir lexer based on Pygments
It appears that not all the rules from the Pygments Elixir lexer were
correctly ported over to Chroma. It was missing mostly the keywords and
declarations that are processed in the `get_tokens_unprocessed` function of the
Pygments Elixir lexer.

This commit adds the missing lines to the Elixir lexer and updates the
tests accordingly.
2020-09-03 01:57:33 -07:00

13 lines
225 B
Plaintext

defmodule Test do
defmodule Formatter do
defstruct [:name]
end
def hello(name \\ "chroma") do
case name do
"chroma" -> IO.puts("Hello, CHROMA!!")
other -> raise "no others please"
end
end
end