scopeName: 'source.riot' name: 'HTML (Riotjs)' fileTypes: [ 'riot' ] patterns: [ # HTML ------------------------------- { name: 'meta.tag.any.html' begin: '(' endCaptures: '0': name: 'punctuation.definition.tag.end.html' patterns: [ { 'include': '#riotExpressions' } { 'include': '#tagStuff' } ] } # ------------------------------- HTML # Script ------------------------------- { name: "source.js.embedded.html" begin: "(?:^\\s+)?(<)((?i:script))\\b(?![^>]*/>|lang=[\"'].*[\"'])" beginCaptures: "1": name: "punctuation.definition.tag.html" "2": name: "entity.name.tag.script.html" end: "(?<=)(?:\\s*\\n)?" endCaptures: "2": name: "punctuation.definition.tag.html" patterns: [ { include: "#tag-stuff" } { begin: "(?)" end: "(]*(?:(?:/>)|(?:type="(?:text/)?(?:sass|scss)")))' end: '()(?:\\s*\\n)?' captures: '1': name: 'punctuation.definition.tag.begin.html' '2': name: 'entity.name.tag.style.html' '3': name: 'punctuation.definition.tag.end.html' patterns: [ { include: '#tagStuff' } { begin: '(>)' end: '(?=]*type="(?:text/)?sass")' end: '()(?:\\s*\\n)?' captures: '1': name: 'punctuation.definition.tag.begin.html' '2': name: 'entity.name.tag.style.html' '3': name: 'punctuation.definition.tag.end.html' patterns: [ { include: '#tagStuff' } { begin: '(>)' end: '(?=]*type="(?:text/)?scss")' end: '()(?:\\s*\\n)?' captures: '1': name: 'punctuation.definition.tag.begin.html' '2': name: 'entity.name.tag.style.html' '3': name: 'punctuation.definition.tag.end.html' patterns: [ { include: '#tagStuff' } { begin: '(>)' end: '(?=)' patterns: [ { name: 'string.quoted.double.html' contentName: 'meta.toc-list.id.html' begin: '"' beginCaptures: '0': name: 'punctuation.definition.string.begin.html' end: '"' endCaptures: '0': name: 'punctuation.definition.string.end.html' } { name: 'string.quoted.single.html' contentName: 'meta.toc-list.id.html' begin: '\'' beginCaptures: '0': name: 'punctuation.definition.string.begin.html' end: '\'' endCaptures: '0': name: 'punctuation.definition.string.end.html' } ] tagStuff: patterns: [ { include: '#tagIdAttribute' } { include: '#tagGenericAttribute' } { include: '#stringDoubleQuoted' } { include: '#stringSingleQuoted' } ]