Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

ALS-1432: remove comments from json #38

Merged
merged 1 commit into from
Oct 18, 2021
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
21 changes: 21 additions & 0 deletions aml-json-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,21 @@
".raml",
".aml",
".yaml",
".yml",
".json"
".yml"
],
"configuration": "./aml-configuration.json"
},
{
"id": "aml-json",
"aliases": [
"ALS",
"als"
],
"extensions": [
".json"
],
"configuration": "./aml-json-configuration.json"
},
{
"id": "oas",
"aliases": [
Expand Down Expand Up @@ -75,6 +85,11 @@
"language": "aml",
"scopeName": "source.aml",
"path": "./syntaxes/aml.tmLanguage.json"
},
{
"language": "aml-json",
"scopeName": "source.json",
"path": "./syntaxes/json.tmLanguage.json"
}
],
"keywords": [
Expand Down
33 changes: 0 additions & 33 deletions syntaxes/json.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,39 +34,6 @@
}
]
},
"comments": {
"patterns": [
{
"begin": "/\\*\\*(?!/)",
"captures": {
"0": {
"name": "punctuation.definition.comment.json"
}
},
"end": "\\*/",
"name": "comment.block.documentation.json"
},
{
"begin": "/\\*",
"captures": {
"0": {
"name": "punctuation.definition.comment.json"
}
},
"end": "\\*/",
"name": "comment.block.json"
},
{
"captures": {
"1": {
"name": "punctuation.definition.comment.json"
}
},
"match": "(//).*$\\n?",
"name": "comment.line.double-slash.js"
}
]
},
"constant": {
"match": "\\b(?:true|false|null)\\b",
"name": "constant.language.json"
Expand Down