mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
[javascript] update grammar, grammar as JSON
This commit is contained in:
parent
fdcbf91f27
commit
5ca799fd07
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue