Files

6 lines
8.6 KiB
JavaScript
Raw Permalink Normal View History

2025-07-26 16:40:29 +08:00
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Dart\",\"name\":\"dart\",\"patterns\":[{\"match\":\"^(#!.*)$\",\"name\":\"meta.preprocessor.script.dart\"},{\"begin\":\"^\\\\w*\\\\b(augment\\\\s+library|library|import\\\\s+augment|import|part\\\\s+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\"},{\"include\":\"#comments\"},{\"match\":\"\\\\b(as|show|hide)\\\\b\",\"name\":\"keyword.other.import.dart\"},{\"match\":\"\\\\b(if)\\\\b\",\"name\":\"keyword.control.dart\"}]},{\"include\":\"#comments\"},{\"include\":\"#punctuation\"},{\"include\":\"#annotations\"},{\"include\":\"#keywords\"},{\"include\":\"#constants-and-special-vars\"},{\"include\":\"#operators\"},{\"include\":\"#strings\"}],\"repository\":{\"annotations\":{\"patterns\":[{\"match\":\"@[a-zA-Z]+\",\"name\":\"storage.type.annotation.dart\"}]},\"class-identifier\":{\"patterns\":[{\"match\":\"(?<!\\\\$)\\\\b(bool|num|int|double|dynamic)\\\\b(?!\\\\$)\",\"name\":\"support.class.dart\"},{\"match\":\"(?<!\\\\$)\\\\bvoid\\\\b(?!\\\\$)\",\"name\":\"storage.type.primitive.dart\"},{\"begin\":\"(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"support.class.dart\"}},\"end\":\"(?!<)\",\"patterns\":[{\"include\":\"#type-args\"}]}]},\"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-block\":{\"patterns\":[{\"begin\":\"/\\\\*\",\"end\":\"\\\\*/\",\"name\":\"comment.block.dart\",\"patterns\":[{\"include\":\"#comments-block\"}]}]},\"comments-doc\":{\"patterns\":[{\"begin\":\"///\",\"end\":\"^(?!\\\\s*///)\",\"name\":\"comment.block.documentation.dart\",\"patterns\":[{\"include\":\"#dartdoc\"}]}]},\"comments-doc-oldschool\":{\"patterns\":[{\"begin\":\"/\\\\*\\\\*\",\"end\":\"\\\\*/\",\"name\":\"comment.block.documentation.dart\",\"patterns\":[{\"include\":\"#comments-doc-oldschool\"},{\"include\":\"#comments-block\"},{\"include\":\"#dartdoc\"}]}]},\"comments-inline\":{\"patterns\":[{\"include\":\"#comments-block\"},{\"captures\":{\"1\":{\"name\":\"comment.line.double-slash.dart\"}},\"match\":\"((//).*)$\"}]},\"constants-and-special-vars\":{\"patterns\":[{\"match\":\"(?<!\\\\$)\\\\b(true|false|null)\\\\b(?!\\\\$)\",\"name\":\"constant.language.dart\"},{\"match\":\"(?<!\\\\$)\\\\b(this|super|augmented)\\\\b(?!\\\\$)\",\"name\":\"variable.language.dart\"},{\"match\":\"(?<!\\\\$)\\\\b((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(([0-9][0-9_]*\\\\.?[0-9_]*)|(\\\\.[0-9][0-9_]*))((e|E)(\\\\+|-)?[0-9][0-9_]*)?)\\\\b(?!\\\\$)\",\"name\":\"constant.numeric.dart\"},{\"include\":\"#class-identifier\"},{\"include\":\"#function-identifier\"}]},\"dartdoc\":{\"patterns\":[{\"captures\":{\"0\":{\"name\":\"variable.name.source.dart\"}},\"match\":\"(\\\\[.*?\\\\])\"},{\"begin\":\"^\\\\s*///\\\\s*(```)\",\"end\":\"^\\\\s*///\\\\s*(```)|^(?!\\\\s*///)\",\"patterns\":[{\"include\":\"#dartdoc-codeblock-triple\"}]},{\"begin\":\"^\\\\s*\\\\*\\\\s*(```)\",\"end\":\"^\\\\s*\\\\*\\\\s*(```)|^(?=\\\\s*\\\\*/)\",\"patterns\":[{\"include\":\"#dartdoc-codeblock-block\"}]},{\"match\":\"`[^`\\n]+`\",\"name\":\"variable.other.source.dart\"},{\"captures\":{\"1\":{\"name\":\"variable.other.source.dart\"}},\"match\":\"(?:\\\\*|\\\\/\\\\/)\\\\s{4,}(.*?)(?=($|\\\\*\\\\/))\"}]},\"dartdoc-codeblock-block\":{\"begin\":\"^\\\\s*\\\\*\\\\s*(?!(\\\\s*```|/))\",\"contentName\":\"variable.other.source.dart\",\"end\":\"\\n\"},\"dartdoc-codeblock-triple\":{\"begin\":\"^\\\\s*///\\\\s*(?!\\\\s*```)\",\"contentName\":\"variable.other.source.dart\",\"end\":\"\\n\"},\"expression\":{\"patterns\":[{\"include\":\"#constants-and-special-vars\"},{\"include\":\"#strings\"},{\"match\":\"[a-zA-Z0-9_]+\",\"name\":\"variable.parameter.dart\"},{\"begin\":\"\\\\{\",\"end\":\"\\\\}
export default [
lang
]