elixir-editors / elixir-sublime-syntax

The most powerful Elixir for the most Sublime experience.
MIT License
46 stars 6 forks source link

Elixir code in markdown is only highlighted correctly if started as a module #26

Closed princemaple closed 3 years ago

princemaple commented 3 years ago

Should this be considered a bug? image

azizk commented 3 years ago

Not quite. It's more like a limitation than a bug. That was the last thing I was trying to solve before releasing the rewrite. No luck unfortunately. Maybe it's possible with the "lookahead" feature in ST4 but I wouldn't bet on it.

I was thinking about commenting out this feature and documenting it so users can enable it if they so desire. As a side-effect of highlighting code inside Markdown, the functions and modules are offered as Goto-symbols which may be unexpected or undesirable at worst. It's a neat feature but has its issues and maybe it's better to let it go.

princemaple commented 3 years ago

Interesting. Thanks for the reply!