Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
- uses: actions/checkout@v2
- uses: SublimeText/syntax-test-action@v2
with:
build: 4180
default_packages: v4180
build: 4192
default_packages: v4192
package_name: ElixirSyntax
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [v4.1.0] – 2025-03-28

- HEEx: support new syntax for embedding Elixir code with curly braces.

## [v4.0.0] – 2024-09-01

- Elixir: improved matching of right-arrow clauses.
Expand Down
1 change: 1 addition & 0 deletions syntaxes/HTML (HEEx).sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ contexts:
- match: </{{is_heex_tag_name}}
scope: punctuation.definition.tag.begin.html
push: [heex-end-tag-content-pop, heex-end-tag-name-pop]
- include: elixir-embedded

heex-begin-tag-content-pop:
- meta_scope: meta.tag.other.heex
Expand Down
11 changes: 11 additions & 0 deletions tests/syntax_test_template.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,19 @@
<script>
<%= @elixir %>
<!-- ^^^^^^ variable.annotation.js - source.elixir -->
{ "1" <> "2" }
<!-- ^^^^^^^^^^^^^^ -meta.embedded.heex -->
</script>

{"1" <> "2"}
<!-- ^ punctuation.section.embedded.end.elixir -->
<!-- ^^^ meta.string.elixir string.quoted.double.elixir -->
<!-- ^^ keyword.operator.binary-concat.elixir -->
<!-- ^^^ meta.string.elixir string.quoted.double.elixir -->
<!-- ^^^^^^^^^^ source.elixir.embedded.html -->
<!-- ^ punctuation.section.embedded.begin.elixir -->
<!-- ^^^^^^^^^^^^ meta.embedded.heex -->

<table :for={user <- @users} :if={assigns[:users]}><:col :let={user}><%= user.id %></:col></table>
<!-- ^^^^^^ meta.embedded.heex -->
<!-- ^^^ entity.other.attribute-name.heex -->
Expand Down