diff --git a/aml-json-configuration.json b/aml-json-configuration.json new file mode 100644 index 0000000..f3cccb2 --- /dev/null +++ b/aml-json-configuration.json @@ -0,0 +1,21 @@ +{ + "brackets": [ + ["{", "}"], + ["[", "]"], + ["(", ")"] + ], + "autoClosingPairs": [ + ["{", "}"], + ["[", "]"], + ["(", ")"], + ["\"", "\""], + ["'", "'"] + ], + "surroundingPairs": [ + ["{", "}"], + ["[", "]"], + ["(", ")"], + ["\"", "\""], + ["'", "'"] + ] +} \ No newline at end of file diff --git a/package.json b/package.json index f0470ec..cfd998f 100644 --- a/package.json +++ b/package.json @@ -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": [ @@ -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": [ diff --git a/syntaxes/json.tmLanguage.json b/syntaxes/json.tmLanguage.json index 66017e6..0759bcc 100644 --- a/syntaxes/json.tmLanguage.json +++ b/syntaxes/json.tmLanguage.json @@ -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"