mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
[jsx][tsx] Wrong type of comments for React code. Fixes #6461
This commit is contained in:
parent
db859bf0eb
commit
d826ad6e4f
|
@ -27,7 +27,7 @@
|
|||
"extensions": [
|
||||
".jsx"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
"configuration": "./javascript-language-configuration.json"
|
||||
},
|
||||
{
|
||||
"id": "javascript",
|
||||
|
@ -47,19 +47,31 @@
|
|||
"mimetypes": [
|
||||
"text/javascript"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
"configuration": "./javascript-language-configuration.json"
|
||||
},
|
||||
{
|
||||
"id": "jsx-tags",
|
||||
"configuration": "./tags-language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "javascriptreact",
|
||||
"scopeName": "source.js",
|
||||
"path": "./syntaxes/JavaScript.tmLanguage.json"
|
||||
"path": "./syntaxes/JavaScript.tmLanguage.json",
|
||||
"embeddedLanguages": {
|
||||
"meta.tag.js": "jsx-tags",
|
||||
"meta.tag.without-attributes.js": "jsx-tags"
|
||||
}
|
||||
},
|
||||
{
|
||||
"language": "javascript",
|
||||
"scopeName": "source.js",
|
||||
"path": "./syntaxes/JavaScript.tmLanguage.json"
|
||||
"path": "./syntaxes/JavaScript.tmLanguage.json",
|
||||
"embeddedLanguages": {
|
||||
"meta.tag.js": "jsx-tags",
|
||||
"meta.tag.without-attributes.js": "jsx-tags"
|
||||
}
|
||||
},
|
||||
{
|
||||
"scopeName": "source.js.regexp",
|
||||
|
|
27
extensions/javascript/tags-language-configuration.json
Normal file
27
extensions/javascript/tags-language-configuration.json
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"comments": {
|
||||
"blockComment": [ "{/*", "*/}" ]
|
||||
},
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["<", ">"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
{ "open": "{", "close": "}" },
|
||||
{ "open": "[", "close": "]" },
|
||||
{ "open": "(", "close": ")" },
|
||||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
||||
{ "open": "/**", "close": " */", "notIn": ["string"] }
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["<", ">"],
|
||||
["'", "'"],
|
||||
["\"", "\""]
|
||||
]
|
||||
}
|
|
@ -68,7 +68,11 @@
|
|||
{
|
||||
"language": "typescriptreact",
|
||||
"scopeName": "source.tsx",
|
||||
"path": "./syntaxes/TypeScriptReact.tmLanguage.json"
|
||||
"path": "./syntaxes/TypeScriptReact.tmLanguage.json",
|
||||
"embeddedLanguages": {
|
||||
"meta.tag.tsx": "jsx-tags",
|
||||
"meta.tag.without-attributes.tsx": "jsx-tags"
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration": {
|
||||
|
|
Loading…
Reference in a new issue