Skip to content

princemaple/elixir-sublime-syntax

 
 

Repository files navigation

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: Image
    • Surface: Image
    • LiveView: Image
  • Full PCRE syntax highlighting: Image
  • Type highlighting: Image

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.

Image

Add an sql macro/function to your project to enjoy SQL highlighting anywhere it's used.

Image

The JSON ~j and ~J sigils (Jason)

Embed JSON strings in your Elixir code. Notice the interpolated Elixir code is colored correctly.

Image

The YAML ~y and ~Y sigils (YamlElixir)

Image

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.

About

The most powerful Elixir for the most Sublime experience.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Elixir 97.8%
  • HTML 2.0%
  • Python 0.2%