Microsoft/monaco-editor
Feature request: Implement syntax highlighting support for Dart/Flutter
Offen
#1.827 geöffnet am 11.02.2020
feature-requestgrammarshelp wanted
Repository-Metriken
- Stars
- (46.002 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 6h 26m) (15 gemergte PRs in 30 T)
Beschreibung
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