Microsoft/monaco-editor

Feature request: Implement syntax highlighting support for Dart/Flutter

Open

#1,827 opened on 2020年2月11日

GitHub で見る
 (4 comments) (1 reaction) (0 assignees)JavaScript (14,836 stars) (1,283 forks)batch import
feature-requestgrammarshelp wanted

説明

Feature request

Add syntax highlighting support for the Dart (and Flutter) programming language. Official Dart VS Code extension syntax files https://github.com/Dart-Code/Dart-Code/tree/master/syntaxes Monaco language configuration for Dart

const dartConfiguration = {
    comments: {
		lineComment: "//",
		blockComment: [ "/*", "*/" ]
	},
	brackets: [
		["{", "}"],
		["[", "]"],
		["(", ")"]
	],
	autoClosingPairs: [
		{ open: "{", close: "}" },
		{ open: "[", close: "]" },
		{ open: "(", close: ")" },
		{ open: "'", close: "'", notIn: ["string", "comment"] },
		{ open: "\"", close: "\"", notIn: ["string"] },
		{ open: "`", close: "`", notIn: ["string", "comment"] },
		{ open: "/**", close: " */", notIn: ["string"] }
	],
	surroundingPairs: [
		["{", "}"],
		["[", "]"],
		["(", ")"],
		["<", ">"],
		["'", "'"],
		["\"", "\""],
		["`", "`"]
	]
};

Help Wanted

コントリビューターガイド

Feature request: Implement syntax highlighting support for Dart/Flutter · Microsoft/monaco-editor#1827 | Good First Issue