From 9f9e562e77611e5d1a10b43441b9f48ad9db9acf Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Thu, 19 Aug 2021 10:47:14 -0700 Subject: [PATCH] Remove Notebook grammar (#15992) --- extensions/notebook/package.json | 7 - .../syntaxes/notebook.tmLanguage.json | 213 ------------------ 2 files changed, 220 deletions(-) delete mode 100644 extensions/notebook/syntaxes/notebook.tmLanguage.json diff --git a/extensions/notebook/package.json b/extensions/notebook/package.json index 11b46037ba..e663d80f6a 100644 --- a/extensions/notebook/package.json +++ b/extensions/notebook/package.json @@ -301,13 +301,6 @@ "configuration": "./language-configuration.json" } ], - "grammars": [ - { - "language": "notebook", - "scopeName": "source.notebook", - "path": "./syntaxes/notebook.tmLanguage.json" - } - ], "menus": { "commandPalette": [ { diff --git a/extensions/notebook/syntaxes/notebook.tmLanguage.json b/extensions/notebook/syntaxes/notebook.tmLanguage.json deleted file mode 100644 index fb5a811725..0000000000 --- a/extensions/notebook/syntaxes/notebook.tmLanguage.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "information_for_contributors": [ - "This file has been converted from https://github.com/Microsoft/vscode-JSON.tmLanguage/blob/master/JSON.tmLanguage", - "If you want to provide a fix or improvement, please create a pull request against the original repository.", - "Once accepted there, we are happy to receive an update request." - ], - "version": "https://github.com/Microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70", - "name": "notebook", - "scopeName": "source.notebook", - "patterns": [ - { - "include": "#value" - } - ], - "repository": { - "array": { - "begin": "\\[", - "beginCaptures": { - "0": { - "name": "punctuation.definition.array.begin.notebook" - } - }, - "end": "\\]", - "endCaptures": { - "0": { - "name": "punctuation.definition.array.end.notebook" - } - }, - "name": "meta.structure.array.notebook", - "patterns": [ - { - "include": "#value" - }, - { - "match": ",", - "name": "punctuation.separator.array.notebook" - }, - { - "match": "[^\\s\\]]", - "name": "invalid.illegal.expected-array-separator.notebook" - } - ] - }, - "comments": { - "patterns": [ - { - "begin": "/\\*\\*(?!/)", - "captures": { - "0": { - "name": "punctuation.definition.comment.notebook" - } - }, - "end": "\\*/", - "name": "comment.block.documentation.notebook" - }, - { - "begin": "/\\*", - "captures": { - "0": { - "name": "punctuation.definition.comment.notebook" - } - }, - "end": "\\*/", - "name": "comment.block.notebook" - }, - { - "captures": { - "1": { - "name": "punctuation.definition.comment.notebook" - } - }, - "match": "(//).*$\\n?", - "name": "comment.line.double-slash.js" - } - ] - }, - "constant": { - "match": "\\b(?:true|false|null)\\b", - "name": "constant.language.notebook" - }, - "number": { - "match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional", - "name": "constant.numeric.notebook" - }, - "object": { - "begin": "\\{", - "beginCaptures": { - "0": { - "name": "punctuation.definition.dictionary.begin.notebook" - } - }, - "end": "\\}", - "endCaptures": { - "0": { - "name": "punctuation.definition.dictionary.end.notebook" - } - }, - "name": "meta.structure.dictionary.notebook", - "patterns": [ - { - "comment": "the notebook object key", - "include": "#objectkey" - }, - { - "include": "#comments" - }, - { - "begin": ":", - "beginCaptures": { - "0": { - "name": "punctuation.separator.dictionary.key-value.notebook" - } - }, - "end": "(,)|(?=\\})", - "endCaptures": { - "1": { - "name": "punctuation.separator.dictionary.pair.notebook" - } - }, - "name": "meta.structure.dictionary.value.notebook", - "patterns": [ - { - "comment": "the notebook object value", - "include": "#value" - }, - { - "match": "[^\\s,]", - "name": "invalid.illegal.expected-dictionary-separator.notebook" - } - ] - }, - { - "match": "[^\\s\\}]", - "name": "invalid.illegal.expected-dictionary-separator.notebook" - } - ] - }, - "string": { - "begin": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.notebook" - } - }, - "end": "\"", - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.notebook" - } - }, - "name": "string.quoted.double.notebook", - "patterns": [ - { - "include": "#stringcontent" - } - ] - }, - "objectkey": { - "begin": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.support.type.property-name.begin.notebook" - } - }, - "end": "\"", - "endCaptures": { - "0": { - "name": "punctuation.support.type.property-name.end.notebook" - } - }, - "name": "string.notebook support.type.property-name.notebook", - "patterns": [ - { - "include": "#stringcontent" - } - ] - }, - "stringcontent": { - "patterns": [ - { - "match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits", - "name": "constant.character.escape.notebook" - }, - { - "match": "\\\\.", - "name": "invalid.illegal.unrecognized-string-escape.notebook" - } - ] - }, - "value": { - "patterns": [ - { - "include": "#constant" - }, - { - "include": "#number" - }, - { - "include": "#string" - }, - { - "include": "#array" - }, - { - "include": "#object" - }, - { - "include": "#comments" - } - ] - } - } -}