elixir-editors / language-elixir

Elixir language support for the Atom editor.
Other
181 stars 40 forks source link

Issue 83: Prevent "#{}" expansion in literal heredocs #104

Open mshenfield opened 6 years ago

mshenfield commented 6 years ago

The atom-brackets package is configured to expand "#" into "#{$1}" in comment.documentation.heredoc.elixir contexts. To avoid this and close #83, this changes literal heredoc contexts (~S) to have a more specific tag, comment.documentation.heredoc.literal.elixir.

Tested by apm linking the modified language-elixir locally and confirmed that "#" no longer expanded in literal heredocs. Also modified existing tests to expect the new name where appropriate.