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
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change log

## Unreleased
## ## Version 1.2.3 (September 22, 2026)

* [317](https://github.com/pgourlain/vscode_erlang/issues/317), [316](https://github.com/pgourlain/vscode_erlang/issues/316) : Syntax highlighting of `fun` expressions
- `fun () -> ... end` and `fun() -> ... end` (a fun with no parameter) highlighted `fun` as a function name instead of a keyword: the rule matching the `fun()` *type* of a `-spec`/`-type` also matched the zero-arity fun *expression*. It now requires that the `)` is not followed by `->`, so the `fun()` type introduced for [297](https://github.com/pgourlain/vscode_erlang/issues/297) keeps working
- A named fun (`fun Loop() -> ... end`, OTP 17+) had no rule at all and fell into the one meant for `fun Module:Name/Arity`, which scans forward to the next `/` - so every construct after it, `-spec`s included, lost its highlighting for the rest of the file. Named funs are now recognized, on one line or with the clause heads on their own lines, and the name is highlighted as a function name
- Fixed in the `grammar` submodule ([erlang-ls/grammar](https://github.com/erlang-ls/grammar)), which is also updated to its current upstream revision

* [351](https://github.com/pgourlain/vscode_erlang/issues/351) : `erl`/`escript`/`erlc` no longer always spawn through a shell
- A sandboxed or minimal environment (e.g. Kiro) can deny or lack a shell entirely while still allowing the binary itself to run; spawning everything through `/bin/sh -c ...` there failed with `spawn /bin/sh ENOENT` regardless of whether `erl` or the working directory were actually fine
Expand Down
2 changes: 1 addition & 1 deletion grammar
Loading