%YAML 1.2 --- # http://www.sublimetext.com/docs/3/syntax.html name: Dart file_extensions: - dart scope: source.dart contexts: main: - match: ^(#!.*)$ scope: meta.preprocessor.script.dart - match: ^\w*\b(library|import|part of|part|export)\b captures: 0: keyword.other.import.dart push: - meta_scope: meta.declaration.dart - match: ; captures: 0: punctuation.terminator.dart pop: true - include: strings - include: comments - match: \b(as|show|hide)\b scope: keyword.other.import.dart - include: comments - include: punctuation - include: annotations - include: keywords - include: constants-and-special-vars - include: strings annotations: - match: "@[a-zA-Z]+" scope: storage.type.annotation.dart comments: - match: /\*\*/ scope: comment.block.empty.dart captures: 0: punctuation.definition.comment.dart - include: comments-doc-oldschool - include: comments-doc - include: comments-inline comments-doc: - match: /// scope: comment.block.documentation.dart comments-doc-oldschool: - match: /\*\* push: - meta_scope: comment.block.documentation.dart - match: \*/ pop: true - include: dartdoc comments-inline: - match: /\* push: - meta_scope: comment.block.dart - match: \*/ pop: true - match: ((//).*)$ captures: 1: comment.line.double-slash.dart constants-and-special-vars: - match: (?)' captures: 1: entity.name.function.dart dartdoc: - match: '(\[.*?\])' captures: 0: variable.name.source.dart - match: " .*" captures: 0: variable.name.source.dart - match: "```.*?$" push: - meta_content_scope: variable.other.source.dart - match: "```" pop: true - match: (`.*?`) captures: 0: variable.other.source.dart - match: (`.*?`) captures: 0: variable.other.source.dart - match: (\* (( ).*))$ captures: 2: variable.other.source.dart - match: (\* .*)$ keywords: - match: (?>>?|~|\^|\||&) scope: keyword.operator.bitwise.dart - match: ((&|\^|\||<<|>>>?)=) scope: keyword.operator.assignment.bitwise.dart - match: (=>) scope: keyword.operator.closure.dart - match: (==|!=|<=?|>=?) scope: keyword.operator.comparison.dart - match: '(([+*/%-]|\~)=)' scope: keyword.operator.assignment.arithmetic.dart - match: (=) scope: keyword.operator.assignment.dart - match: (\-\-|\+\+) scope: keyword.operator.increment-decrement.dart - match: (\-|\+|\*|\/|\~\/|%) scope: keyword.operator.arithmetic.dart - match: (!|&&|\|\|) scope: keyword.operator.logical.dart - match: (?