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

Commit

Permalink
ALS-1432: remove comments from json
Browse files Browse the repository at this point in the history
  • Loading branch information
llibarona committed Oct 18, 2021
1 parent 1249b8d commit 1694771
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 35 deletions.
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

0 comments on commit 1694771

Please sign in to comment.