grammars/text.html.erb.json in github-linguist-5.3.3 vs grammars/text.html.erb.json in github-linguist-6.0.0

- old
+ new

@@ -1,154 +1,150 @@ { "name": "HTML (Ruby - ERB)", "scopeName": "text.html.erb", - "fileTypes": [ - "rhtml", - "html.erb" - ], - "injections": { - "text.html.erb - (meta.embedded.block.erb | meta.embedded.line.erb | meta.tag | comment), meta.tag string.quoted": { - "patterns": [ - { - "begin": "(^\\s*)(?=<%+#(?![^%]*%>))", - "beginCaptures": { - "0": { - "name": "punctuation.whitespace.comment.leading.erb" - } - }, - "end": "(?!\\G)(\\s*$\\n)?", - "endCaptures": { - "0": { - "name": "punctuation.whitespace.comment.trailing.erb" - } - }, - "patterns": [ - { - "include": "#comment" - } - ] - }, - { - "begin": "(^\\s*)(?=<%(?![^%]*%>))", - "beginCaptures": { - "0": { - "name": "punctuation.whitespace.embedded.leading.erb" - } - }, - "end": "(?!\\G)(\\s*$\\n)?", - "endCaptures": { - "0": { - "name": "punctuation.whitespace.embedded.trailing.erb" - } - }, - "patterns": [ - { - "include": "#tags" - } - ] - }, - { - "include": "#comment" - }, - { - "include": "#tags" - } - ] - } - }, "patterns": [ { "include": "text.html.basic" } ], "repository": { "comment": { "patterns": [ { - "begin": "<%+#", + "name": "comment.block.erb", + "begin": "\u003c%+#", + "end": "%\u003e", "beginCaptures": { "0": { "name": "punctuation.definition.comment.begin.erb" } }, - "end": "%>", "endCaptures": { "0": { "name": "punctuation.definition.comment.end.erb" } - }, - "name": "comment.block.erb" + } } ] }, "tags": { "patterns": [ { - "begin": "<%+(?!>)[-=]?(?![^%]*%>)", + "name": "meta.embedded.block.erb", + "contentName": "source.ruby.embedded.erb", + "begin": "\u003c%+(?!\u003e)[-=]?(?![^%]*%\u003e)", + "end": "-?%\u003e", + "patterns": [ + { + "name": "comment.line.number-sign.erb", + "match": "(#).*?(?=-?%\u003e)", + "captures": { + "1": { + "name": "punctuation.definition.comment.erb" + } + } + }, + { + "include": "source.ruby" + } + ], "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.erb" } }, - "contentName": "source.ruby.embedded.erb", - "end": "-?%>", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.erb" }, "1": { "name": "source.ruby" } - }, - "name": "meta.embedded.block.erb", + } + }, + { + "name": "meta.embedded.line.erb", + "contentName": "source.ruby.embedded.erb", + "begin": "\u003c%+(?!\u003e)[-=]?", + "end": "-?%\u003e", "patterns": [ { + "name": "comment.line.number-sign.erb", + "match": "(#).*?(?=-?%\u003e)", "captures": { "1": { "name": "punctuation.definition.comment.erb" } - }, - "match": "(#).*?(?=-?%>)", - "name": "comment.line.number-sign.erb" + } }, { "include": "source.ruby" } - ] - }, - { - "begin": "<%+(?!>)[-=]?", + ], "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.erb" } }, - "contentName": "source.ruby.embedded.erb", - "end": "-?%>", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.erb" }, "1": { "name": "source.ruby" } + } + } + ] + } + }, + "injections": { + "text.html.erb - (meta.embedded.block.erb | meta.embedded.line.erb | meta.tag | comment), meta.tag string.quoted": { + "patterns": [ + { + "begin": "(^\\s*)(?=\u003c%+#(?![^%]*%\u003e))", + "end": "(?!\\G)(\\s*$\\n)?", + "patterns": [ + { + "include": "#comment" + } + ], + "beginCaptures": { + "0": { + "name": "punctuation.whitespace.comment.leading.erb" + } }, - "name": "meta.embedded.line.erb", + "endCaptures": { + "0": { + "name": "punctuation.whitespace.comment.trailing.erb" + } + } + }, + { + "begin": "(^\\s*)(?=\u003c%(?![^%]*%\u003e))", + "end": "(?!\\G)(\\s*$\\n)?", "patterns": [ { - "captures": { - "1": { - "name": "punctuation.definition.comment.erb" - } - }, - "match": "(#).*?(?=-?%>)", - "name": "comment.line.number-sign.erb" - }, - { - "include": "source.ruby" + "include": "#tags" } - ] + ], + "beginCaptures": { + "0": { + "name": "punctuation.whitespace.embedded.leading.erb" + } + }, + "endCaptures": { + "0": { + "name": "punctuation.whitespace.embedded.trailing.erb" + } + } + }, + { + "include": "#comment" + }, + { + "include": "#tags" } ] } } -} \ No newline at end of file +}