Microsoft/monaco-editor

Feature request: Implement syntax highlighting support for Dart/Flutter

开放

#1,827 创建于 2020年2月11日

 (4 条评论) (1 个反应) (0 位负责人)JavaScript (4,064 个派生)batch import
feature-requestgrammarshelp wanted

仓库指标

星标
 (46,002 个星标)
PR 合并指标
 (平均合并 6小时 26分钟) (30 天内合并 15 个 PR)

描述

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

贡献者指南