feat: update linguist languages (#4741)
Context: https://github.com/prettier/prettier/pull/4734#issue-196702272 Languages should be easy to maintain now.master
parent
2c2283ea7d
commit
0b659b898d
|
@ -40,6 +40,7 @@
|
|||
"jest-docblock": "22.2.2",
|
||||
"json-stable-stringify": "1.0.1",
|
||||
"leven": "2.1.0",
|
||||
"linguist-languages": "6.2.0",
|
||||
"lodash.uniqby": "4.7.0",
|
||||
"mem": "1.1.0",
|
||||
"minimatch": "3.0.4",
|
||||
|
|
|
@ -2,50 +2,30 @@
|
|||
|
||||
const printer = require("./printer-postcss");
|
||||
const options = require("./options");
|
||||
|
||||
// Based on:
|
||||
// https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
|
||||
const languageExtend = require("../utils/language-extend");
|
||||
|
||||
const languages = [
|
||||
{
|
||||
name: "CSS",
|
||||
languageExtend({}, require("linguist-languages/data/css"), {
|
||||
since: "1.4.0",
|
||||
parsers: ["css"],
|
||||
group: "CSS",
|
||||
tmScope: "source.css",
|
||||
aceMode: "css",
|
||||
codemirrorMode: "css",
|
||||
codemirrorMimeType: "text/css",
|
||||
extensions: [".css", ".pcss", ".postcss"],
|
||||
liguistLanguageId: 50,
|
||||
vscodeLanguageIds: ["css", "postcss"]
|
||||
},
|
||||
{
|
||||
name: "Less",
|
||||
vscodeLanguageIds: ["css"]
|
||||
}),
|
||||
languageExtend({}, require("linguist-languages/data/postcss"), {
|
||||
since: "1.4.0",
|
||||
parsers: ["css"],
|
||||
extensions: [".postcss"],
|
||||
vscodeLanguageIds: ["postcss"]
|
||||
}),
|
||||
languageExtend({}, require("linguist-languages/data/less"), {
|
||||
since: "1.4.0",
|
||||
parsers: ["less"],
|
||||
group: "CSS",
|
||||
extensions: [".less"],
|
||||
tmScope: "source.css.less",
|
||||
aceMode: "less",
|
||||
codemirrorMode: "css",
|
||||
codemirrorMimeType: "text/css",
|
||||
liguistLanguageId: 198,
|
||||
vscodeLanguageIds: ["less"]
|
||||
},
|
||||
{
|
||||
name: "SCSS",
|
||||
}),
|
||||
languageExtend({}, require("linguist-languages/data/scss"), {
|
||||
since: "1.4.0",
|
||||
parsers: ["scss"],
|
||||
group: "CSS",
|
||||
tmScope: "source.scss",
|
||||
aceMode: "scss",
|
||||
codemirrorMode: "css",
|
||||
codemirrorMimeType: "text/x-scss",
|
||||
extensions: [".scss"],
|
||||
liguistLanguageId: 329,
|
||||
vscodeLanguageIds: ["scss"]
|
||||
}
|
||||
})
|
||||
];
|
||||
|
||||
const printers = {
|
||||
|
|
|
@ -2,21 +2,14 @@
|
|||
|
||||
const printer = require("./printer-graphql");
|
||||
const options = require("./options");
|
||||
|
||||
// Based on:
|
||||
// https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
|
||||
const languageExtend = require("../utils/language-extend");
|
||||
|
||||
const languages = [
|
||||
{
|
||||
name: "GraphQL",
|
||||
languageExtend({}, require("linguist-languages/data/graphql"), {
|
||||
since: "1.5.0",
|
||||
parsers: ["graphql"],
|
||||
extensions: [".graphql", ".gql"],
|
||||
tmScope: "source.graphql",
|
||||
aceMode: "text",
|
||||
liguistLanguageId: 139,
|
||||
vscodeLanguageIds: ["graphql"]
|
||||
}
|
||||
})
|
||||
];
|
||||
|
||||
const printers = {
|
||||
|
|
|
@ -1,21 +1,14 @@
|
|||
"use strict";
|
||||
|
||||
const printer = require("./printer-glimmer");
|
||||
|
||||
// Based on:
|
||||
// https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
|
||||
const languageExtend = require("../utils/language-extend");
|
||||
|
||||
const languages = [
|
||||
{
|
||||
type: "markup",
|
||||
group: "HTML",
|
||||
aliases: ["hbs", "htmlbars"],
|
||||
extensions: [".handlebars", ".hbs"],
|
||||
tm_scope: "text.html.handlebars",
|
||||
ace_mode: "handlebars",
|
||||
language_id: 155,
|
||||
since: null // unreleased
|
||||
}
|
||||
languageExtend({}, require("linguist-languages/data/handlebars"), {
|
||||
since: null, // unreleased
|
||||
parsers: ["glimmer"],
|
||||
vscodeLanguageIds: ["handlebars"]
|
||||
})
|
||||
];
|
||||
|
||||
const printers = {
|
||||
|
|
|
@ -1,25 +1,14 @@
|
|||
"use strict";
|
||||
|
||||
const printer = require("./printer-htmlparser2");
|
||||
|
||||
// Based on:
|
||||
// https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
|
||||
const languageExtend = require("../utils/language-extend");
|
||||
|
||||
const languages = [
|
||||
{
|
||||
name: "HTML",
|
||||
languageExtend({}, require("linguist-languages/data/html"), {
|
||||
since: null, // unreleased
|
||||
parsers: ["parse5"],
|
||||
group: "HTML",
|
||||
tmScope: "text.html.basic",
|
||||
aceMode: "html",
|
||||
codemirrorMode: "htmlmixed",
|
||||
codemirrorMimeType: "text/html",
|
||||
aliases: ["xhtml"],
|
||||
extensions: [".html", ".htm", ".html.hl", ".inc", ".st", ".xht", ".xhtml"],
|
||||
linguistLanguageId: 146,
|
||||
vscodeLanguageIds: ["html"]
|
||||
}
|
||||
})
|
||||
];
|
||||
|
||||
const printers = {
|
||||
|
|
|
@ -3,123 +3,48 @@
|
|||
const estreePrinter = require("./printer-estree");
|
||||
const estreeJsonPrinter = require("./printer-estree-json");
|
||||
const options = require("./options");
|
||||
|
||||
// Based on:
|
||||
// https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
|
||||
const languageExtend = require("../utils/language-extend");
|
||||
|
||||
const languages = [
|
||||
{
|
||||
name: "JavaScript",
|
||||
languageExtend({}, require("linguist-languages/data/javascript"), {
|
||||
since: "0.0.0",
|
||||
parsers: ["babylon", "flow"],
|
||||
group: "JavaScript",
|
||||
tmScope: "source.js",
|
||||
aceMode: "javascript",
|
||||
codemirrorMode: "javascript",
|
||||
codemirrorMimeType: "text/javascript",
|
||||
aliases: ["js", "node"],
|
||||
extensions: [
|
||||
".js",
|
||||
"._js",
|
||||
".bones",
|
||||
".es",
|
||||
".es6",
|
||||
".frag",
|
||||
".gs",
|
||||
".jake",
|
||||
".jsb",
|
||||
".jscad",
|
||||
".jsfl",
|
||||
".jsm",
|
||||
".jss",
|
||||
".mjs",
|
||||
".njs",
|
||||
".pac",
|
||||
".sjs",
|
||||
".ssjs",
|
||||
".xsjs",
|
||||
".xsjslib"
|
||||
],
|
||||
filenames: ["Jakefile"],
|
||||
linguistLanguageId: 183,
|
||||
vscodeLanguageIds: ["javascript"]
|
||||
},
|
||||
{
|
||||
name: "JSX",
|
||||
}),
|
||||
languageExtend({}, require("linguist-languages/data/jsx"), {
|
||||
since: "0.0.0",
|
||||
parsers: ["babylon", "flow"],
|
||||
group: "JavaScript",
|
||||
extensions: [".jsx"],
|
||||
tmScope: "source.js.jsx",
|
||||
aceMode: "javascript",
|
||||
codemirrorMode: "jsx",
|
||||
codemirrorMimeType: "text/jsx",
|
||||
liguistLanguageId: 178,
|
||||
vscodeLanguageIds: ["javascriptreact"]
|
||||
},
|
||||
{
|
||||
name: "TypeScript",
|
||||
}),
|
||||
languageExtend({}, require("linguist-languages/data/typescript"), {
|
||||
since: "1.4.0",
|
||||
parsers: ["typescript-eslint"],
|
||||
group: "JavaScript",
|
||||
aliases: ["ts"],
|
||||
extensions: [".ts", ".tsx"],
|
||||
tmScope: "source.ts",
|
||||
aceMode: "typescript",
|
||||
codemirrorMode: "javascript",
|
||||
codemirrorMimeType: "application/typescript",
|
||||
liguistLanguageId: 378,
|
||||
vscodeLanguageIds: ["typescript", "typescriptreact"]
|
||||
},
|
||||
{
|
||||
name: "JSON.stringify",
|
||||
since: "1.13.0",
|
||||
parsers: ["json-stringify"],
|
||||
group: "JavaScript",
|
||||
tmScope: "source.json",
|
||||
aceMode: "json",
|
||||
codemirrorMode: "javascript",
|
||||
codemirrorMimeType: "application/json",
|
||||
extensions: [], // .json file defaults to json instead of json-stringify
|
||||
filenames: ["package.json", "package-lock.json", "composer.json"],
|
||||
linguistLanguageId: 174,
|
||||
vscodeLanguageIds: ["json"]
|
||||
},
|
||||
{
|
||||
name: "JSON",
|
||||
}),
|
||||
Object.assign(
|
||||
languageExtend({}, require("linguist-languages/data/json"), {
|
||||
name: "JSON.stringify",
|
||||
since: "1.13.0",
|
||||
parsers: ["json-stringify"],
|
||||
vscodeLanguageIds: ["json"]
|
||||
}),
|
||||
// overwrite
|
||||
{
|
||||
extensions: [], // .json file defaults to json instead of json-stringify
|
||||
filenames: ["package.json", "package-lock.json", "composer.json"]
|
||||
}
|
||||
),
|
||||
languageExtend({}, require("linguist-languages/data/json"), {
|
||||
since: "1.5.0",
|
||||
parsers: ["json"],
|
||||
group: "JavaScript",
|
||||
tmScope: "source.json",
|
||||
aceMode: "json",
|
||||
codemirrorMode: "javascript",
|
||||
codemirrorMimeType: "application/json",
|
||||
extensions: [".json", ".geojson", ".JSON-tmLanguage", ".topojson"],
|
||||
filenames: [
|
||||
".arcconfig",
|
||||
".jshintrc",
|
||||
".eslintrc",
|
||||
".prettierrc",
|
||||
"composer.lock",
|
||||
"mcmod.info"
|
||||
],
|
||||
linguistLanguageId: 174,
|
||||
filenames: [".eslintrc", ".prettierrc"],
|
||||
vscodeLanguageIds: ["json", "jsonc"]
|
||||
},
|
||||
{
|
||||
name: "JSON5",
|
||||
}),
|
||||
languageExtend({}, require("linguist-languages/data/json5"), {
|
||||
since: "1.13.0",
|
||||
parsers: ["json5"],
|
||||
group: "JavaScript",
|
||||
tmScope: "source.json",
|
||||
aceMode: "json",
|
||||
codemirrorMode: "javascript",
|
||||
codemirrorMimeType: "application/json",
|
||||
extensions: [".json5"],
|
||||
filenames: [".babelrc"],
|
||||
linguistLanguageId: 175,
|
||||
vscodeLanguageIds: ["json5"]
|
||||
}
|
||||
})
|
||||
];
|
||||
|
||||
const printers = {
|
||||
|
|
|
@ -2,36 +2,15 @@
|
|||
|
||||
const printer = require("./printer-markdown");
|
||||
const options = require("./options");
|
||||
|
||||
// Based on:
|
||||
// https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
|
||||
const languageExtend = require("../utils/language-extend");
|
||||
|
||||
const languages = [
|
||||
{
|
||||
name: "Markdown",
|
||||
languageExtend({}, require("linguist-languages/data/markdown"), {
|
||||
since: "1.8.0",
|
||||
parsers: ["remark"],
|
||||
aliases: ["pandoc"],
|
||||
aceMode: "markdown",
|
||||
codemirrorMode: "gfm",
|
||||
codemirrorMimeType: "text/x-gfm",
|
||||
wrap: true,
|
||||
extensions: [
|
||||
".md",
|
||||
".markdown",
|
||||
".mdown",
|
||||
".mdwn",
|
||||
".mkd",
|
||||
".mkdn",
|
||||
".mkdown",
|
||||
".ron",
|
||||
".workbook"
|
||||
],
|
||||
filenames: ["README"],
|
||||
tmScope: "source.gfm",
|
||||
linguistLanguageId: 222,
|
||||
vscodeLanguageIds: ["markdown"]
|
||||
}
|
||||
})
|
||||
];
|
||||
|
||||
const printers = {
|
||||
|
|
|
@ -1,24 +1,14 @@
|
|||
"use strict";
|
||||
|
||||
const printer = require("./printer-vue");
|
||||
|
||||
// Based on:
|
||||
// https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
|
||||
const languageExtend = require("../utils/language-extend");
|
||||
|
||||
const languages = [
|
||||
{
|
||||
name: "Vue",
|
||||
languageExtend({}, require("linguist-languages/data/vue"), {
|
||||
since: "1.10.0",
|
||||
parsers: ["vue"],
|
||||
group: "HTML",
|
||||
tmScope: "text.html.vue",
|
||||
aceMode: "html",
|
||||
codemirrorMode: "htmlmixed",
|
||||
codemirrorMimeType: "text/html",
|
||||
extensions: [".vue"],
|
||||
linguistLanguageId: 146,
|
||||
vscodeLanguageIds: ["vue"]
|
||||
}
|
||||
})
|
||||
];
|
||||
|
||||
const printers = {
|
||||
|
|
|
@ -2,34 +2,18 @@
|
|||
|
||||
const printer = require("./printer-yaml");
|
||||
const options = require("./options");
|
||||
const languageExtend = require("../utils/language-extend");
|
||||
|
||||
const language = {
|
||||
name: "YAML",
|
||||
since: "1.14.0",
|
||||
parsers: ["yaml"],
|
||||
vscodeLanguageIds: ["yaml"],
|
||||
// https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
|
||||
aceMode: "yaml",
|
||||
aliases: ["yml"],
|
||||
codemirrorMimeType: "text/x-yaml",
|
||||
codemirrorMode: "yaml",
|
||||
extensions: [
|
||||
".yml",
|
||||
".reek",
|
||||
".rviz",
|
||||
".sublime-syntax",
|
||||
".syntax",
|
||||
".yaml",
|
||||
".yaml-tmlanguage",
|
||||
".yml.mysql"
|
||||
],
|
||||
filenames: [".clang-format", ".clang-tidy", ".gemrc"],
|
||||
linguistLanguageId: 407,
|
||||
tmScope: "source.yaml"
|
||||
};
|
||||
const languages = [
|
||||
languageExtend({}, require("linguist-languages/data/yaml"), {
|
||||
since: "1.14.0",
|
||||
parsers: ["yaml"],
|
||||
vscodeLanguageIds: ["yaml"]
|
||||
})
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
languages: [language],
|
||||
languages,
|
||||
printers: { yaml: printer },
|
||||
options
|
||||
};
|
||||
|
|
|
@ -95,7 +95,10 @@ function getSupportInfo(version, opts) {
|
|||
});
|
||||
}
|
||||
|
||||
if (usePostCssParser && language.group === "CSS") {
|
||||
if (
|
||||
usePostCssParser &&
|
||||
(language.name === "CSS" || language.group === "CSS")
|
||||
) {
|
||||
return Object.assign({}, language, {
|
||||
parsers: ["postcss"]
|
||||
});
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
"use strict";
|
||||
|
||||
module.exports = function() {
|
||||
const main = arguments[0];
|
||||
|
||||
for (let i = 1; i < arguments.length; i++) {
|
||||
const arg = arguments[i];
|
||||
Object.keys(arg).forEach(key => {
|
||||
const newKey = key === "languageId" ? "linguistLanguageId" : key;
|
||||
|
||||
const value = arg[key];
|
||||
if (Array.isArray(main[newKey])) {
|
||||
main[newKey] = main[newKey].concat(value);
|
||||
} else {
|
||||
main[newKey] = value;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return main;
|
||||
};
|
|
@ -126,7 +126,7 @@ exports[`API getSupportInfo() with version 1.0.0 -> 1.4.0 1`] = `
|
|||
- First value
|
||||
+ Second value
|
||||
|
||||
@@ -1,29 +1,56 @@
|
||||
@@ -1,29 +1,59 @@
|
||||
Object {
|
||||
\\"languages\\": Object {
|
||||
+ \\"CSS\\": Array [
|
||||
|
@ -143,6 +143,9 @@ exports[`API getSupportInfo() with version 1.0.0 -> 1.4.0 1`] = `
|
|||
+ \\"Less\\": Array [
|
||||
+ \\"postcss\\",
|
||||
+ ],
|
||||
+ \\"PostCSS\\": Array [
|
||||
+ \\"postcss\\",
|
||||
+ ],
|
||||
+ \\"SCSS\\": Array [
|
||||
+ \\"postcss\\",
|
||||
+ ],
|
||||
|
@ -183,7 +186,7 @@ exports[`API getSupportInfo() with version 1.0.0 -> 1.4.0 1`] = `
|
|||
\\"type\\": \\"choice\\",
|
||||
},
|
||||
\\"printWidth\\": Object {
|
||||
@@ -33,10 +60,28 @@
|
||||
@@ -33,10 +63,28 @@
|
||||
\\"start\\": 0,
|
||||
\\"step\\": 1,
|
||||
},
|
||||
|
@ -236,7 +239,7 @@ exports[`API getSupportInfo() with version 1.4.0 -> 1.5.0 1`] = `
|
|||
\\"flow\\",
|
||||
],
|
||||
\\"JavaScript\\": Array [
|
||||
@@ -47,10 +53,12 @@
|
||||
@@ -50,10 +56,12 @@
|
||||
\\"choices\\": Array [
|
||||
\\"flow\\",
|
||||
\\"babylon\\",
|
||||
|
@ -267,7 +270,7 @@ exports[`API getSupportInfo() with version 1.5.0 -> 1.7.1 1`] = `
|
|||
\\"graphql\\",
|
||||
],
|
||||
\\"JSON\\": Array [
|
||||
@@ -16,14 +16,14 @@
|
||||
@@ -16,17 +16,17 @@
|
||||
\\"JavaScript\\": Array [
|
||||
\\"babylon\\",
|
||||
\\"flow\\",
|
||||
|
@ -275,6 +278,10 @@ exports[`API getSupportInfo() with version 1.5.0 -> 1.7.1 1`] = `
|
|||
\\"Less\\": Array [
|
||||
- \\"postcss\\",
|
||||
+ \\"less\\",
|
||||
],
|
||||
\\"PostCSS\\": Array [
|
||||
- \\"postcss\\",
|
||||
+ \\"css\\",
|
||||
],
|
||||
\\"SCSS\\": Array [
|
||||
- \\"postcss\\",
|
||||
|
@ -284,7 +291,7 @@ exports[`API getSupportInfo() with version 1.5.0 -> 1.7.1 1`] = `
|
|||
\\"typescript\\",
|
||||
],
|
||||
},
|
||||
@@ -52,11 +52,13 @@
|
||||
@@ -55,11 +55,13 @@
|
||||
\\"parser\\": Object {
|
||||
\\"choices\\": Array [
|
||||
\\"flow\\",
|
||||
|
@ -299,7 +306,7 @@ exports[`API getSupportInfo() with version 1.5.0 -> 1.7.1 1`] = `
|
|||
],
|
||||
\\"default\\": \\"babylon\\",
|
||||
\\"type\\": \\"choice\\",
|
||||
@@ -86,10 +88,14 @@
|
||||
@@ -89,10 +91,14 @@
|
||||
\\"start\\": 0,
|
||||
\\"step\\": 1,
|
||||
},
|
||||
|
@ -330,12 +337,12 @@ exports[`API getSupportInfo() with version 1.7.1 -> 1.8.0 1`] = `
|
|||
+ \\"Markdown\\": Array [
|
||||
+ \\"markdown\\",
|
||||
+ ],
|
||||
\\"PostCSS\\": Array [
|
||||
\\"css\\",
|
||||
],
|
||||
\\"SCSS\\": Array [
|
||||
\\"scss\\",
|
||||
],
|
||||
\\"TypeScript\\": Array [
|
||||
\\"typescript\\",
|
||||
@@ -43,10 +46,14 @@
|
||||
@@ -46,10 +49,14 @@
|
||||
},
|
||||
\\"filepath\\": Object {
|
||||
\\"default\\": undefined,
|
||||
|
@ -350,7 +357,7 @@ exports[`API getSupportInfo() with version 1.7.1 -> 1.8.0 1`] = `
|
|||
\\"type\\": \\"boolean\\",
|
||||
},
|
||||
\\"parser\\": Object {
|
||||
@@ -57,10 +64,11 @@
|
||||
@@ -60,10 +67,11 @@
|
||||
\\"css\\",
|
||||
\\"less\\",
|
||||
\\"scss\\",
|
||||
|
@ -369,7 +376,7 @@ exports[`API getSupportInfo() with version 1.8.0 -> 1.8.2 1`] = `
|
|||
- First value
|
||||
+ Second value
|
||||
|
||||
@@ -78,10 +78,18 @@
|
||||
@@ -81,10 +81,18 @@
|
||||
\\"start\\": 0,
|
||||
\\"step\\": 1,
|
||||
},
|
||||
|
@ -412,7 +419,7 @@ exports[`API getSupportInfo() with version 1.8.2 -> undefined 1`] = `
|
|||
\\"flow\\",
|
||||
],
|
||||
\\"JavaScript\\": Array [
|
||||
@@ -27,12 +33,23 @@
|
||||
@@ -30,12 +36,23 @@
|
||||
\\"scss\\",
|
||||
],
|
||||
\\"TypeScript\\": Array [
|
||||
|
@ -436,7 +443,7 @@ exports[`API getSupportInfo() with version 1.8.2 -> undefined 1`] = `
|
|||
\\"type\\": \\"boolean\\",
|
||||
},
|
||||
\\"cursorOffset\\": Object {
|
||||
@@ -63,16 +80,27 @@
|
||||
@@ -66,16 +83,27 @@
|
||||
\\"typescript\\",
|
||||
\\"css\\",
|
||||
\\"less\\",
|
||||
|
@ -465,7 +472,7 @@ exports[`API getSupportInfo() with version 1.8.2 -> undefined 1`] = `
|
|||
\\"range\\": Object {
|
||||
\\"end\\": Infinity,
|
||||
\\"start\\": 0,
|
||||
@@ -80,14 +108,15 @@
|
||||
@@ -83,14 +111,15 @@
|
||||
},
|
||||
\\"type\\": \\"int\\",
|
||||
},
|
||||
|
@ -496,6 +503,7 @@ exports[`CLI --support-info (stdout) 1`] = `
|
|||
\\"aliases\\": [\\"js\\", \\"node\\"],
|
||||
\\"codemirrorMimeType\\": \\"text/javascript\\",
|
||||
\\"codemirrorMode\\": \\"javascript\\",
|
||||
\\"color\\": \\"#f1e05a\\",
|
||||
\\"extensions\\": [
|
||||
\\".js\\",
|
||||
\\"._js\\",
|
||||
|
@ -519,12 +527,13 @@ exports[`CLI --support-info (stdout) 1`] = `
|
|||
\\".xsjslib\\"
|
||||
],
|
||||
\\"filenames\\": [\\"Jakefile\\"],
|
||||
\\"group\\": \\"JavaScript\\",
|
||||
\\"interpreters\\": [\\"node\\"],
|
||||
\\"linguistLanguageId\\": 183,
|
||||
\\"name\\": \\"JavaScript\\",
|
||||
\\"parsers\\": [\\"babylon\\", \\"flow\\"],
|
||||
\\"since\\": \\"0.0.0\\",
|
||||
\\"tmScope\\": \\"source.js\\",
|
||||
\\"type\\": \\"programming\\",
|
||||
\\"vscodeLanguageIds\\": [\\"javascript\\"]
|
||||
},
|
||||
{
|
||||
|
@ -533,11 +542,12 @@ exports[`CLI --support-info (stdout) 1`] = `
|
|||
\\"codemirrorMode\\": \\"jsx\\",
|
||||
\\"extensions\\": [\\".jsx\\"],
|
||||
\\"group\\": \\"JavaScript\\",
|
||||
\\"liguistLanguageId\\": 178,
|
||||
\\"linguistLanguageId\\": 178,
|
||||
\\"name\\": \\"JSX\\",
|
||||
\\"parsers\\": [\\"babylon\\", \\"flow\\"],
|
||||
\\"since\\": \\"0.0.0\\",
|
||||
\\"tmScope\\": \\"source.js.jsx\\",
|
||||
\\"type\\": \\"programming\\",
|
||||
\\"vscodeLanguageIds\\": [\\"javascriptreact\\"]
|
||||
},
|
||||
{
|
||||
|
@ -545,13 +555,14 @@ exports[`CLI --support-info (stdout) 1`] = `
|
|||
\\"aliases\\": [\\"ts\\"],
|
||||
\\"codemirrorMimeType\\": \\"application/typescript\\",
|
||||
\\"codemirrorMode\\": \\"javascript\\",
|
||||
\\"color\\": \\"#2b7489\\",
|
||||
\\"extensions\\": [\\".ts\\", \\".tsx\\"],
|
||||
\\"group\\": \\"JavaScript\\",
|
||||
\\"liguistLanguageId\\": 378,
|
||||
\\"linguistLanguageId\\": 378,
|
||||
\\"name\\": \\"TypeScript\\",
|
||||
\\"parsers\\": [\\"typescript\\"],
|
||||
\\"since\\": \\"1.4.0\\",
|
||||
\\"tmScope\\": \\"source.ts\\",
|
||||
\\"type\\": \\"programming\\",
|
||||
\\"vscodeLanguageIds\\": [\\"typescript\\", \\"typescriptreact\\"]
|
||||
},
|
||||
{
|
||||
|
@ -564,57 +575,90 @@ exports[`CLI --support-info (stdout) 1`] = `
|
|||
\\"linguistLanguageId\\": 174,
|
||||
\\"name\\": \\"JSON.stringify\\",
|
||||
\\"parsers\\": [\\"json-stringify\\"],
|
||||
\\"searchable\\": false,
|
||||
\\"since\\": \\"1.13.0\\",
|
||||
\\"tmScope\\": \\"source.json\\",
|
||||
\\"type\\": \\"data\\",
|
||||
\\"vscodeLanguageIds\\": [\\"json\\"]
|
||||
},
|
||||
{
|
||||
\\"aceMode\\": \\"json\\",
|
||||
\\"codemirrorMimeType\\": \\"application/json\\",
|
||||
\\"codemirrorMode\\": \\"javascript\\",
|
||||
\\"extensions\\": [\\".json\\", \\".geojson\\", \\".JSON-tmLanguage\\", \\".topojson\\"],
|
||||
\\"extensions\\": [
|
||||
\\".json\\",
|
||||
\\".avsc\\",
|
||||
\\".geojson\\",
|
||||
\\".gltf\\",
|
||||
\\".JSON-tmLanguage\\",
|
||||
\\".jsonl\\",
|
||||
\\".tfstate\\",
|
||||
\\".tfstate.backup\\",
|
||||
\\".topojson\\",
|
||||
\\".webapp\\",
|
||||
\\".webmanifest\\"
|
||||
],
|
||||
\\"filenames\\": [
|
||||
\\".arcconfig\\",
|
||||
\\".htmlhintrc\\",
|
||||
\\".jscsrc\\",
|
||||
\\".jshintrc\\",
|
||||
\\".eslintrc\\",
|
||||
\\".prettierrc\\",
|
||||
\\".tern-config\\",
|
||||
\\".tern-project\\",
|
||||
\\"composer.lock\\",
|
||||
\\"mcmod.info\\"
|
||||
\\"mcmod.info\\",
|
||||
\\".eslintrc\\",
|
||||
\\".prettierrc\\"
|
||||
],
|
||||
\\"group\\": \\"JavaScript\\",
|
||||
\\"linguistLanguageId\\": 174,
|
||||
\\"name\\": \\"JSON\\",
|
||||
\\"parsers\\": [\\"json\\"],
|
||||
\\"searchable\\": false,
|
||||
\\"since\\": \\"1.5.0\\",
|
||||
\\"tmScope\\": \\"source.json\\",
|
||||
\\"type\\": \\"data\\",
|
||||
\\"vscodeLanguageIds\\": [\\"json\\", \\"jsonc\\"]
|
||||
},
|
||||
{
|
||||
\\"aceMode\\": \\"json\\",
|
||||
\\"aceMode\\": \\"javascript\\",
|
||||
\\"codemirrorMimeType\\": \\"application/json\\",
|
||||
\\"codemirrorMode\\": \\"javascript\\",
|
||||
\\"extensions\\": [\\".json5\\"],
|
||||
\\"filenames\\": [\\".babelrc\\"],
|
||||
\\"group\\": \\"JavaScript\\",
|
||||
\\"filenames\\": [\\".babelrc\\", \\".jslintrc\\"],
|
||||
\\"linguistLanguageId\\": 175,
|
||||
\\"name\\": \\"JSON5\\",
|
||||
\\"parsers\\": [\\"json5\\"],
|
||||
\\"since\\": \\"1.13.0\\",
|
||||
\\"tmScope\\": \\"source.json\\",
|
||||
\\"tmScope\\": \\"source.js\\",
|
||||
\\"type\\": \\"data\\",
|
||||
\\"vscodeLanguageIds\\": [\\"json5\\"]
|
||||
},
|
||||
{
|
||||
\\"aceMode\\": \\"css\\",
|
||||
\\"codemirrorMimeType\\": \\"text/css\\",
|
||||
\\"codemirrorMode\\": \\"css\\",
|
||||
\\"extensions\\": [\\".css\\", \\".pcss\\", \\".postcss\\"],
|
||||
\\"group\\": \\"CSS\\",
|
||||
\\"liguistLanguageId\\": 50,
|
||||
\\"color\\": \\"#563d7c\\",
|
||||
\\"extensions\\": [\\".css\\"],
|
||||
\\"linguistLanguageId\\": 50,
|
||||
\\"name\\": \\"CSS\\",
|
||||
\\"parsers\\": [\\"css\\"],
|
||||
\\"since\\": \\"1.4.0\\",
|
||||
\\"tmScope\\": \\"source.css\\",
|
||||
\\"vscodeLanguageIds\\": [\\"css\\", \\"postcss\\"]
|
||||
\\"type\\": \\"markup\\",
|
||||
\\"vscodeLanguageIds\\": [\\"css\\"]
|
||||
},
|
||||
{
|
||||
\\"aceMode\\": \\"text\\",
|
||||
\\"extensions\\": [\\".pcss\\", \\".postcss\\"],
|
||||
\\"group\\": \\"CSS\\",
|
||||
\\"linguistLanguageId\\": 262764437,
|
||||
\\"name\\": \\"PostCSS\\",
|
||||
\\"parsers\\": [\\"css\\"],
|
||||
\\"since\\": \\"1.4.0\\",
|
||||
\\"tmScope\\": \\"source.postcss\\",
|
||||
\\"type\\": \\"markup\\",
|
||||
\\"vscodeLanguageIds\\": [\\"postcss\\"]
|
||||
},
|
||||
{
|
||||
\\"aceMode\\": \\"less\\",
|
||||
|
@ -622,11 +666,12 @@ exports[`CLI --support-info (stdout) 1`] = `
|
|||
\\"codemirrorMode\\": \\"css\\",
|
||||
\\"extensions\\": [\\".less\\"],
|
||||
\\"group\\": \\"CSS\\",
|
||||
\\"liguistLanguageId\\": 198,
|
||||
\\"linguistLanguageId\\": 198,
|
||||
\\"name\\": \\"Less\\",
|
||||
\\"parsers\\": [\\"less\\"],
|
||||
\\"since\\": \\"1.4.0\\",
|
||||
\\"tmScope\\": \\"source.css.less\\",
|
||||
\\"type\\": \\"markup\\",
|
||||
\\"vscodeLanguageIds\\": [\\"less\\"]
|
||||
},
|
||||
{
|
||||
|
@ -635,21 +680,23 @@ exports[`CLI --support-info (stdout) 1`] = `
|
|||
\\"codemirrorMode\\": \\"css\\",
|
||||
\\"extensions\\": [\\".scss\\"],
|
||||
\\"group\\": \\"CSS\\",
|
||||
\\"liguistLanguageId\\": 329,
|
||||
\\"linguistLanguageId\\": 329,
|
||||
\\"name\\": \\"SCSS\\",
|
||||
\\"parsers\\": [\\"scss\\"],
|
||||
\\"since\\": \\"1.4.0\\",
|
||||
\\"tmScope\\": \\"source.scss\\",
|
||||
\\"type\\": \\"markup\\",
|
||||
\\"vscodeLanguageIds\\": [\\"scss\\"]
|
||||
},
|
||||
{
|
||||
\\"aceMode\\": \\"text\\",
|
||||
\\"extensions\\": [\\".graphql\\", \\".gql\\"],
|
||||
\\"liguistLanguageId\\": 139,
|
||||
\\"linguistLanguageId\\": 139,
|
||||
\\"name\\": \\"GraphQL\\",
|
||||
\\"parsers\\": [\\"graphql\\"],
|
||||
\\"since\\": \\"1.5.0\\",
|
||||
\\"tmScope\\": \\"source.graphql\\",
|
||||
\\"type\\": \\"data\\",
|
||||
\\"vscodeLanguageIds\\": [\\"graphql\\"]
|
||||
},
|
||||
{
|
||||
|
@ -665,7 +712,7 @@ exports[`CLI --support-info (stdout) 1`] = `
|
|||
\\".mkd\\",
|
||||
\\".mkdn\\",
|
||||
\\".mkdown\\",
|
||||
\\".ron\\",
|
||||
\\".ronn\\",
|
||||
\\".workbook\\"
|
||||
],
|
||||
\\"filenames\\": [\\"README\\"],
|
||||
|
@ -674,20 +721,20 @@ exports[`CLI --support-info (stdout) 1`] = `
|
|||
\\"parsers\\": [\\"markdown\\"],
|
||||
\\"since\\": \\"1.8.0\\",
|
||||
\\"tmScope\\": \\"source.gfm\\",
|
||||
\\"type\\": \\"prose\\",
|
||||
\\"vscodeLanguageIds\\": [\\"markdown\\"],
|
||||
\\"wrap\\": true
|
||||
},
|
||||
{
|
||||
\\"aceMode\\": \\"html\\",
|
||||
\\"codemirrorMimeType\\": \\"text/html\\",
|
||||
\\"codemirrorMode\\": \\"htmlmixed\\",
|
||||
\\"color\\": \\"#2c3e50\\",
|
||||
\\"extensions\\": [\\".vue\\"],
|
||||
\\"group\\": \\"HTML\\",
|
||||
\\"linguistLanguageId\\": 146,
|
||||
\\"linguistLanguageId\\": 391,
|
||||
\\"name\\": \\"Vue\\",
|
||||
\\"parsers\\": [\\"vue\\"],
|
||||
\\"since\\": \\"1.10.0\\",
|
||||
\\"tmScope\\": \\"text.html.vue\\",
|
||||
\\"type\\": \\"markup\\",
|
||||
\\"vscodeLanguageIds\\": [\\"vue\\"]
|
||||
}
|
||||
],
|
||||
|
|
|
@ -3771,6 +3771,10 @@ lines-and-columns@^1.1.6:
|
|||
version "1.1.6"
|
||||
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
|
||||
|
||||
linguist-languages@6.2.0:
|
||||
version "6.2.0"
|
||||
resolved "https://registry.yarnpkg.com/linguist-languages/-/linguist-languages-6.2.0.tgz#90c4d74d29828ccc8c08f59b36b62df6d33b2b7f"
|
||||
|
||||
load-json-file@^1.0.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0"
|
||||
|
|
Loading…
Reference in New Issue