%YAML 1.2 --- # http://www.sublimetext.com/docs/3/syntax.html name: HTML (Twig) file_extensions: - twig - html.twig scope: text.html.twig contexts: main: - match: '(<)([a-zA-Z0-9:]++)(?=[^>]*>)' captures: 1: punctuation.definition.tag.html 2: entity.name.tag.html push: - meta_scope: meta.tag.any.html - match: (>(<)/)(\2)(>) captures: 1: punctuation.definition.tag.html 2: meta.scope.between-tag-pair.html 3: entity.name.tag.html 4: punctuation.definition.tag.html pop: true - include: tag-stuff - match: (<\?)(xml) captures: 1: punctuation.definition.tag.html 2: entity.name.tag.xml.html push: - meta_scope: meta.tag.preprocessor.xml.html - match: (\?>) captures: 1: punctuation.definition.tag.html 2: entity.name.tag.xml.html pop: true - include: tag-generic-attribute - include: string-double-quoted - include: string-single-quoted - match: