Awesome
ElixirSyntax
ElixirSyntax was initially based on the Elixir.tmbundle package but has been rewritten since, providing more accurate syntax matching as well as better syntax highlighting.
Features
- Working
Goto Definition
functionality - HTML template highlighting:
- HEEx: <img src="images/elixir_heex_example.svg" width="260" align="top">
- Surface: <img src="images/elixir_surface_example.svg" width="215" align="top">
- LiveView: <img src="images/elixir_liveview_example.svg" width="230" align="top">
- Full PCRE syntax highlighting: <img src="images/elixir_regex_example.svg" width="270" align="top">
- Type highlighting: <img src="images/elixir_type_example.svg" width="620" align="top">
Some of the other provided features are not immediately evident. Among them are:
The fragment
and sql
functions
SQL syntax is highlighted inside Ecto's fragment
macro.
Add an sql
macro/function to your project to enjoy SQL highlighting anywhere it's used.
The JSON ~j
and ~J
sigils (Jason
)
Embed JSON strings in your Elixir code. Notice the interpolated Elixir code is colored correctly.
<blockquote> <img src="images/elixir_json_example.svg" width="100%"> </blockquote>The YAML ~y
and ~Y
sigils (YamlElixir
)
<blockquote>
<img src="images/elixir_yaml_example.svg" width="100%">
</blockquote>
Changes
See CHANGELOG.md for the list of releases and noteworthy changes.
Contributors/Maintainers
- @azizk rewrote the whole syntax definition with an extensive test-suite and added a wealth of new features. ⭐
- @princemaple initially brought the tm-syntax to sublime-syntax and made some improvements.