mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-26 12:44:05 +00:00
[javascript] update grammar, grammar as JSON
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"version": "0.0.1",
|
||||
"license": "Apache2",
|
||||
"repositoryURL": "https://github.com/Microsoft/TypeScript-TmLanguage",
|
||||
"description": "The file syntaxes/JavaScript.tmLanguage was derived from TypeScriptReact.tmLanguage in https://github.com/Microsoft/TypeScript-TmLanguage.",
|
||||
"description": "The file syntaxes/JavaScript.tmLanguage.json was derived from TypeScriptReact.tmLanguage in https://github.com/Microsoft/TypeScript-TmLanguage.",
|
||||
"licenseDetail": [
|
||||
// Reason: LICENSE file does not include Copyright statement
|
||||
"Copyright (c) Microsoft Corporation. All rights reserved.",
|
||||
|
||||
@@ -54,12 +54,12 @@
|
||||
{
|
||||
"language": "javascriptreact",
|
||||
"scopeName": "source.js",
|
||||
"path": "./syntaxes/JavaScript.tmLanguage"
|
||||
"path": "./syntaxes/JavaScript.tmLanguage.json"
|
||||
},
|
||||
{
|
||||
"language": "javascript",
|
||||
"scopeName": "source.js",
|
||||
"path": "./syntaxes/JavaScript.tmLanguage"
|
||||
"path": "./syntaxes/JavaScript.tmLanguage.json"
|
||||
},
|
||||
{
|
||||
"scopeName": "source.js.regexp",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
1526
extensions/javascript/syntaxes/JavaScript.tmLanguage.json
Normal file
1526
extensions/javascript/syntaxes/JavaScript.tmLanguage.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,10 @@
|
||||
The JavaScript.tmLanguage bundle is derived from the TypeScriptReact.tmLanguage.
|
||||
The file `JavaScript.tmLanguage.json` is derived from [TypeScriptReact.tmLanguage](https://github.com/Microsoft/TypeScript-TmLanguage/blob/master/TypeScriptReact.tmLanguage).
|
||||
|
||||
Changes:
|
||||
- fileTypes .tsx -> .js
|
||||
To update to the latest version:
|
||||
- `cd extensions/typescript` and run `npm run update-grammars`
|
||||
- don't forget to run the integration tests at `./scripts/test-integration.sh`
|
||||
|
||||
The script does the following changes:
|
||||
- fileTypes .tsx -> .js & .jsx
|
||||
- scopeName scope.tsx -> scope.js
|
||||
- update language name and file types
|
||||
- update all rule names .tsx -> .js
|
||||
|
||||
Reference in New Issue
Block a user