Files
Wilhelm KirschbaumandStefan Kangas ae2589ea7a Add expression handling to heex-ts-mode
On the latest update of the grammar expressions were added and won't be
seen as directives anymore.

* lisp/progmodes/heex-ts-mode.el
(heex-ts--sexp-regexp): Match on expression as well.
(heex-ts--indent-rules): Indent on expression end.  (Bug#75191)
* test/lisp/progmodes/heex-ts-mode-resources/indent.erts: Add expression
indent test.
2025-01-03 09:41:15 +01:00

64 lines
502 B
Plaintext

Code:
(lambda ()
(setq indent-tabs-mode nil)
(heex-ts-mode)
(indent-region (point-min) (point-max)))
Point-Char: $
Name: Tag
=-=
<div>
div
</div>
=-=
<div>
div
</div>
=-=-=
Name: Component
=-=
<Foo>
foobar
</Foo>
=-=
<Foo>
foobar
</Foo>
=-=-=
Name: Slots
=-=
<Foo>
<:bar>
foobar
</:bar>
</Foo>
=-=
<Foo>
<:bar>
foobar
</:bar>
</Foo>
=-=-=
Name: Expression
=-=
<div>
{
@bar
}
</div>
=-=
<div>
{
@bar
}
</div>
=-=-=