Skip to content

Commit 88bbffd

Browse files
Add info about unclosed delimiters diagnostic to 1.16 changelog (#13180)
1 parent a50a2fd commit 88bbffd

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ For mismatched delimiters, it now shows both delimiters:
2929
└─ lib/my_app.ex:1:18
3030
```
3131

32+
For unclosed delimiters, it now shows where the unclosed delimiter starts:
33+
34+
```
35+
** (TokenMissingError) token missing on lib/my_app:8:23:
36+
error: missing terminator: )
37+
38+
1 │ my_numbers = (1, 2, 3, 4, 5, 6
39+
│ └ unclosed delimiter
40+
...
41+
8 │ IO.inspect(my_numbers)
42+
│ └ missing closing delimiter (expected ")")
43+
44+
└─ lib/my_app:8:23
45+
```
46+
3247
Errors and warnings diagnostics also include code snippets. When possible, we will show precise spans, such as on undefined variables:
3348

3449
```
@@ -51,7 +66,7 @@ error: function names should start with lowercase characters or underscore, inva
5166
└─ lib/sample.ex:3
5267
```
5368

54-
A huge thank you to Vinícius Muller for working on the new diagnostics.
69+
A huge thank you to Vinícius Müller for working on the new diagnostics.
5570

5671
## Revamped documentation
5772

0 commit comments

Comments
 (0)