elixir-makeup / makeup_elixir

Elixir lexer for Makeup
BSD 2-Clause "Simplified" License
33 stars 12 forks source link

Wrong color and "boldness" in "...>" when line ends with "<>" #17

Closed wojtekmach closed 3 years ago

wojtekmach commented 3 years ago

(originally posted as https://github.com/elixir-lang/ex_doc/issues/1317)

I was able to create a minimal repro:

source = """
iex> x = [
...>   string:
...>     "foo" <>
...>       "bar"
...> ]
"""

html = Makeup.highlight(source)
css = ["<style type=\"text/css\">", Makeup.stylesheet(), "</style>"]
html = [css, html]

File.write!("/tmp/makeup.html", html)
System.cmd("open", ["/tmp/makeup.html"])
image
wojtekmach commented 3 years ago

Oh, it's not actually about <>,

source = """
iex> x = [
...>   string:
...>     "foo"
...> ]
"""

outputs:

image