Skip to content

The most powerful Elixir for the most Sublime experience.

License

Notifications You must be signed in to change notification settings

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

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.

The YAML ~y and ~Y sigils (YamlElixir)

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

Watchers

Forks

Packages

No packages published

Languages

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