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

貢獻者指南