Skip to content

Commit 6d3b00e

Browse files
committed
Add footnote
1 parent 2297a10 commit 6d3b00e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.markdown

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Multi-line comments start with `/*` and end with `*/`. They can span multiple li
4242

4343
## Trailing commas
4444

45-
JSONC doesn't allow trailing commas; however, we encourage parsers to be lenient and handle trailing commas gracefully where possible to reduce the risk of human edits introducing parsing errors.
45+
JSONC doesn't allow trailing commas; however, we encourage parsers to be lenient and handle trailing commas gracefully where possible to reduce the risk of human edits introducing parsing errors.[^1]
4646

4747
## Semantics
4848

@@ -91,4 +91,8 @@ Here is a non-exhaustive list:
9191
**Rust**
9292
- [dprint/jsonc-parser](https://github.com/dprint/jsonc-parser)
9393

94+
---
95+
96+
[^1]: In VS Code, "the mode also accepts trailing commas, but they are discouraged and the editor will display a warning." ([source](https://code.visualstudio.com/docs/languages/json#_json-with-comments))
97+
9498

0 commit comments

Comments
 (0)