Add support for JSON with Comments.

Support is similar to JSON5, except block comments are also supported.
This commit is contained in:
Rich Alimi
2023-02-25 06:22:46 +00:00
parent 9430173992
commit 53f6d2f8fe
4 changed files with 47 additions and 2 deletions

View File

@@ -163,6 +163,22 @@
}
]
},
{
"language": "JSON with Comments",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
},
{
"language": "JSON5",
"markers": [