The current implementation of Sublime Text’s builtin Erlang syntax definition is quite outdated and therefore causes a lot of highlighting issues especially with recent Erlang language features like typespecs, etc.
To address all these issues and make use of the latest features of Sublime Text’s syntax engine, the whole syntax was rewritten from scratch based on the Erlang/OTP 21.2 specification.
The related pull request and the syntax definition can be found at:
Any feedback to help debugging the syntax definition would be appreciated.
Please report issues directly to the pull request.
How to install
https://github.com/deathaxe/Packagesto a folder of your choice.
- Checkout the
- Create a symlink/junction (or a copy) of the Erlang folder in the cloned repository in ST’s packages folder (e.g.: ~/.config/sublime-text-3/Packages or %APPDATA%/Sublime Text 3/Packages)
- Download the ZIP-Archive of the pr/erlang-rewrite branch
- Extract the Packages-pr-erlang-rewrite/Erlang folder to ST’s packages folder (e.g.: ~/.config/sublime-text-3/Packages or %APPDATA%/Sublime Text 3/Packages)