--- fileTypes: - haml foldingStartMarker: ^\s*([-%#\:\.\w\=].*)\s$ foldingStopMarker: ^\s*$ keyEquivalent: ^~H name: Ruby Haml patterns: - captures: '1': name: punctuation.definition.prolog.haml match: ^(!!!)($|\s.*) name: meta.prolog.haml - captures: '1': name: punctuation.section.comment.haml match: ^ *(/)\s*\S.*$\n? name: comment.line.slash.haml - begin: ^( *)(/)\s*$ beginCaptures: '2': name: punctuation.section.comment.haml end: ^(?!\1 ) name: comment.block.haml patterns: - include: text.haml - captures: '0': name: punctuation.section.embedded.ruby '1': name: source.ruby.embedded.source.empty match: ! '#\{\s*(\})' name: source.ruby.rails.embedded.source - begin: ! '#\{' captures: '0': name: punctuation.section.embedded.ruby end: (?' name: keyword.other.angle-bracket.haml - include: ! '#ruby' - include: ! '#erb' - include: ! '#javascript' - include: ! '#sass' - include: ! '#css' repository: continuation: captures: '1': name: punctuation.separator.continuation.haml match: (\|)\s*\n css: begin: ^(\s*):css end: ^(?!\1\s) name: source.css patterns: - include: source.css erb: begin: ^(\s*):erb end: ^(?!\1\s) name: text.html.ruby.embedded.haml patterns: - include: text.html.ruby javascript: begin: ^(\s*):javascript end: ^(?!\1\s) name: source.js patterns: - include: source.js nest_curly_and_self: patterns: - begin: \{ captures: '0': name: punctuation.section.scope.ruby end: \} patterns: - include: ! '#nest_curly_and_self' - include: source.ruby ruby: begin: ^(\s*):ruby end: ^(?!\1\s) name: source.ruby.rails.embedded.haml patterns: - include: source.ruby.rails rubyline: begin: =|-|~ contentName: source.ruby.rails.embedded.haml end: ((do|\{)( \|[^|]+\|)?)$|$|^(?!.*\|\s*$) endCaptures: '1': name: source.ruby.rails.embedded.html '2': name: keyword.control.ruby.start-block name: meta.line.ruby.haml patterns: - comment: Hack to let ruby comments work in this context properly match: ! '#.*$' name: comment.line.number-sign.ruby - include: source.ruby.rails - include: ! '#continuation' sass: begin: ^(\s*):sass end: ^(?!\1 ) name: source.sass patterns: - include: source.sass scopeName: text.haml uuid: 3D727049-DD05-45DF-92A5-D50EA36FD035