{ "scopeName": "source.yaml", "name": "YAML", "fileTypes": [ "clang-format", "eslintrc", "eyaml", "eyml", "yaml", "yml", "sls", "sublime-syntax", "Boxfile" ], "firstLineMatch": "^#cloud-config", "patterns": [ { "include": "#erb" }, { "match": "\\t+", "name": "invalid.illegal.whitespace.yaml" }, { "begin": "^(\\s*)(?!-\\s*)(\\S+\\s*(:))\\s*(\\||>)", "beginCaptures": { "2": { "name": "entity.name.tag.yaml" }, "3": { "name": "punctuation.separator.key-value.yaml" } }, "end": "^(?!\\1\\s+)(?=\\s*(-|\\S+\\s*:|#))", "name": "string.unquoted.block.yaml", "patterns": [ { "include": "#erb" } ] }, { "begin": "^(\\s*)(?:(-)|(?:(-(\\s*))?(\\S+\\s*(:))))\\s*(\\||>)", "beginCaptures": { "2": { "name": "punctuation.definition.entry.yaml" }, "3": { "name": "punctuation.definition.entry.yaml" }, "5": { "name": "entity.name.tag.yaml" }, "6": { "name": "punctuation.separator.key-value.yaml" } }, "end": "^(?!\\1 \\4\\s+)(?=\\s*(-|\\S+\\s*:|#))", "name": "string.unquoted.block.yaml", "patterns": [ { "include": "#erb" } ] }, { "captures": { "1": { "name": "punctuation.definition.entry.yaml" }, "2": { "name": "entity.name.tag.yaml" }, "3": { "name": "punctuation.separator.key-value.yaml" }, "4": { "name": "punctuation.definition.entry.yaml" } }, "match": "(?:(?:(-\\s*)?([^\\s#].*?(:)(?=\\s)))|(-))\\s*((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\s*($|(?=#)(?!#\\{))", "name": "constant.numeric.yaml" }, { "begin": "(?:(?:(-\\s*)?([^\\s#].*?(:)(?=\\s)))|(-))[ \t]*", "beginCaptures": { "1": { "name": "punctuation.definition.entry.yaml" }, "2": { "name": "entity.name.tag.yaml" }, "3": { "name": "punctuation.separator.key-value.yaml" }, "4": { "name": "punctuation.definition.entry.yaml" } }, "end": "$|(?=#)(?!#\\{)", "patterns": [ { "name": "string.unquoted.yaml", "match": "\\!\\s*" }, { "include": "#double_quoted_string" }, { "include": "#single_quoted_string" }, { "name": "string.unquoted.yaml", "match": "[^\"'#\\n]([^#\\n]|((?)=?", "beginCaptures": { "0": { "name": "punctuation.definition.embedded.begin.ruby" } }, "contentName": "source.ruby.rails", "end": "(%)>", "endCaptures": { "0": { "name": "punctuation.definition.embedded.end.ruby" }, "1": { "name": "source.ruby.rails" } }, "name": "meta.embedded.line.ruby", "patterns": [ { "captures": { "1": { "name": "punctuation.definition.comment.ruby" } }, "match": "(#).*?(?=%>)", "name": "comment.line.number-sign.ruby" }, { "include": "source.ruby.rails" } ] }, "escaped_char": { "match": "\\\\.", "name": "constant.character.escape.yaml" }, "double_quoted_string": { "begin": "\"", "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.yaml" } }, "end": "\"", "endCaptures": { "0": { "name": "punctuation.definition.string.end.yaml" } }, "name": "string.quoted.double.yaml", "patterns": [ { "include": "#escaped_char" }, { "include": "#erb" } ] }, "single_quoted_string": { "begin": "'", "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.yaml" } }, "end": "'", "endCaptures": { "0": { "name": "punctuation.definition.string.end.yaml" } }, "name": "string.quoted.single.yaml", "patterns": [ { "include": "#escaped_char" }, { "include": "#erb" } ] } } }