mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-05 13:05:18 +02:00
2365845022
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.
13 lines
225 B
Plaintext
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
|