{ "fileTypes": [ "dart" ], "foldingStartMarker": "\\{\\s*$", "foldingStopMarker": "^\\s*\\}", "name": "Dart", "patterns": [ { "match": "^(#!.*)$", "name": "meta.preprocessor.script.dart" }, { "begin": "^\\w*\\b(library|import|part of|part|export)\\b", "beginCaptures": { "0": { "name": "keyword.other.import.dart" } }, "end": ";", "endCaptures": { "0": { "name": "punctuation.terminator.dart" } }, "name": "meta.declaration.dart", "patterns": [ { "include": "#strings" }, { "match": "\\b(as|show|hide)\\b", "name": "keyword.other.import.dart" } ] }, { "include": "#comments" }, { "include": "#punctuation" }, { "include": "#annotations" }, { "include": "#constants-and-special-vars" }, { "include": "#keywords" }, { "include": "#strings" } ], "repository": { "dartdoc": { "patterns": [ { "match": "(\\[.*?\\])", "captures": { "0": { "name": "variable.name.source.dart" } } }, { "match": "(`.*?`)", "captures": { "0": { "name": "variable.other.source.dart" } } }, { "match": "(\\* (( ).*))$", "captures": { "2": { "name": "variable.other.source.dart" } } }, { "match": "(\\* .*)$" } ] }, "comments": { "patterns": [ { "captures": { "0": { "name": "punctuation.definition.comment.dart" } }, "match": "/\\*\\*/", "name": "comment.block.empty.dart" }, { "include": "#comments-doc-oldschool" }, { "include": "#comments-doc" }, { "include": "#comments-inline" } ] }, "comments-doc-oldschool": { "patterns": [ { "begin": "/\\*\\*", "end": "\\*/", "name": "comment.block.documentation.dart", "patterns": [ { "include": "#dartdoc" } ] } ] }, "comments-doc": { "patterns": [ { "match": "(///) (.*?)$", "captures": { "1": { "name": "comment.block.triple-slash.dart" }, "2": { "name": "variable.other.source.dart" } } }, { "match": "(///)(.*?)$", "captures": { "1": { "name": "comment.block.triple-slash.dart" }, "2": { "name": "comment.block.documentation.dart", "patterns": [ { "include": "#dartdoc" } ] } } } ] }, "comments-inline": { "patterns": [ { "begin": "/\\*", "end": "\\*/", "name": "comment.block.dart" }, { "captures": { "1": { "name": "comment.line.double-slash.dart" } }, "match": "((//).*)$" } ] }, "annotations": { "patterns": [ { "match": "@[a-zA-Z]+", "name": "storage.type.annotation.dart" } ] }, "constants-and-special-vars": { "patterns": [ { "match": "(?)", "captures": { "1": { "name": "entity.name.function.dart" } } } ] }, "keywords": { "patterns": [ { "match": "(?>>?|~|\\^|\\||&)", "name": "keyword.operator.bitwise.dart" }, { "match": "((&|\\^|\\||<<|>>>?)=)", "name": "keyword.operator.assignment.bitwise.dart" }, { "match": "(==|!=|<=?|>=?)", "name": "keyword.operator.comparison.dart" }, { "match": "(([+*/%-]|\\~)=)", "name": "keyword.operator.assignment.arithmetic.dart" }, { "match": "(=)", "name": "keyword.operator.assignment.dart" }, { "match": "(\\-\\-|\\+\\+)", "name": "keyword.operator.increment-decrement.dart" }, { "match": "(\\-|\\+|\\*|\\/|\\~\\/|%)", "name": "keyword.operator.arithmetic.dart" }, { "match": "(!|&&|\\|\\|)", "name": "keyword.operator.logical.dart" }, { "match": "(?