Skip to content

Commit

Permalink
chore: Change handlebars to ember-handlebars so linguist scope tests …
Browse files Browse the repository at this point in the history
…pass

by @evoactivity
  • Loading branch information
lifeart authored Dec 7, 2023
2 parents 55ca698 + f402589 commit 01e7c35
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ In your vscode `settings.json` file:
"textMateRules": [
{
"scope": [
"text.html.handlebars meta.tag.any.handlebars entity.other.attribute-name.handlebars.argument",
"text.html.ember-handlebars meta.tag.any.ember-handlebars entity.other.attribute-name.ember-handlebars.argument",
],
"settings": {
"foreground": "#47c7b3",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
{
"label": "Handlebars (Ember)",
"language": "handlebars",
"scopeName": "text.html.handlebars",
"scopeName": "text.html.ember-handlebars",
"path": "./syntaxes/handlebars.tmLanguage.json"
},
{
Expand Down
90 changes: 45 additions & 45 deletions syntaxes/handlebars.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Glimmer",
"scopeName": "text.html.handlebars",
"scopeName": "text.html.ember-handlebars",
"fileTypes": ["hbs"],
"patterns": [
{
Expand Down Expand Up @@ -63,64 +63,64 @@
}
},
"string-double-quoted-handlebars": {
"name": "string.quoted.double.handlebars",
"name": "string.quoted.double.ember-handlebars",
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.handlebars"
"name": "punctuation.definition.string.begin.ember-handlebars"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.handlebars"
"name": "punctuation.definition.string.end.ember-handlebars"
}
},
"patterns": [
{
"name": "constant.character.escape.handlebars",
"name": "constant.character.escape.ember-handlebars",
"match": "\\\\\""
}
]
},
"string-single-quoted-handlebars": {
"name": "string.quoted.single.handlebars",
"name": "string.quoted.single.ember-handlebars",
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.handlebars"
"name": "punctuation.definition.string.begin.ember-handlebars"
}
},
"end": "'",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.handlebars"
"name": "punctuation.definition.string.end.ember-handlebars"
}
},
"patterns": [
{
"name": "constant.character.escape.handlebars",
"name": "constant.character.escape.ember-handlebars",
"match": "\\\\'"
}
]
},
"string-double-quoted-html": {
"name": "string.quoted.double.html.handlebars",
"name": "string.quoted.double.html.ember-handlebars",
"begin": "\"",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.handlebars"
"name": "punctuation.definition.string.begin.ember-handlebars"
}
},
"end": "\"",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.handlebars"
"name": "punctuation.definition.string.end.ember-handlebars"
}
},
"patterns": [
{
"name": "constant.character.escape.handlebars",
"name": "constant.character.escape.ember-handlebars",
"match": "\\\\\""
},
{
Expand All @@ -141,22 +141,22 @@
]
},
"string-single-quoted-html": {
"name": "string.quoted.single.html.handlebars",
"name": "string.quoted.single.html.ember-handlebars",
"begin": "'",
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.handlebars"
"name": "punctuation.definition.string.begin.ember-handlebars"
}
},
"end": "'",
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.handlebars"
"name": "punctuation.definition.string.end.ember-handlebars"
}
},
"patterns": [
{
"name": "constant.character.escape.handlebars",
"name": "constant.character.escape.ember-handlebars",
"match": "\\\\'"
},
{
Expand Down Expand Up @@ -240,7 +240,7 @@
"patterns": []
},
"glimmer-unescaped-expression": {
"name": "entity.unescaped.expression.handlebars",
"name": "entity.unescaped.expression.ember-handlebars",
"begin": "{{{",
"end": "}}}",
"captures": {
Expand Down Expand Up @@ -300,7 +300,7 @@
]
},
"glimmer-bools": {
"name": "entity.expression.handlebars",
"name": "entity.expression.ember-handlebars",
"match": "({{~?)(true|false|null|undefined|\\d*(\\.)?\\d+)(~?}})",
"captures": {
"0": {
Expand All @@ -321,7 +321,7 @@
}
},
"glimmer-else-block": {
"name": "entity.expression.handlebars",
"name": "entity.expression.ember-handlebars",
"match": "({{~?)(else\\s[a-z]+\\s|else)([()@a-zA-Z0-9\\.\\s\\b]+)?(~?}})",
"captures": {
"0": {
Expand Down Expand Up @@ -368,7 +368,7 @@
}
},
"glimmer-special-block": {
"name": "entity.expression.handlebars",
"name": "entity.expression.ember-handlebars",
"match": "({{~?)(yield|outlet)(~?}})",
"captures": {
"0": {
Expand Down Expand Up @@ -396,7 +396,7 @@
]
},
"glimmer-block": {
"name": "entity.expression.handlebars",
"name": "entity.expression.ember-handlebars",
"begin": "({{~?)(#|/)(([@\\$a-zA-Z0-9_/.-]+))",
"end": "(~?}})",
"captures": {
Expand Down Expand Up @@ -433,7 +433,7 @@
]
},
"glimmer-expression-property": {
"name": "entity.expression.handlebars",
"name": "entity.expression.ember-handlebars",
"begin": "({{~?)((@|this.)([a-zA-Z0-9_.-]+))",
"end": "(~?}})",
"captures": {
Expand Down Expand Up @@ -473,7 +473,7 @@
]
},
"glimmer-expression": {
"name": "entity.expression.handlebars",
"name": "entity.expression.ember-handlebars",
"begin": "({{~?)(([()\\s@a-zA-Z0-9_.-]+))",
"end": "(~?}})",
"captures": {
Expand Down Expand Up @@ -539,7 +539,7 @@
]
},
"glimmer-control-expression": {
"name": "entity.expression.handlebars",
"name": "entity.expression.ember-handlebars",
"begin": "({{~?)(([-a-z/]+)\\s)",
"end": "(~?}})",
"captures": {
Expand All @@ -560,7 +560,7 @@
]
},
"glimmer-subexp": {
"name": "entity.subexpression.handlebars",
"name": "entity.subexpression.ember-handlebars",
"begin": "(\\()([@a-zA-Z0-9.-]+)",
"end": "(\\))",
"captures": {
Expand All @@ -583,17 +583,17 @@
"patterns": []
},
"as-params": {
"name": "keyword.block-params.handlebars",
"name": "keyword.block-params.ember-handlebars",
"begin": "(?<!\\|)(\\|)",
"beginCaptures": {
"1": {
"name": "constant.other.symbol.begin.handlebars"
"name": "constant.other.symbol.begin.ember-handlebars"
}
},
"end": "(\\|)(?!\\|)",
"endCaptures": {
"1": {
"name": "constant.other.symbol.end.handlebars"
"name": "constant.other.symbol.end.ember-handlebars"
}
},
"patterns": [
Expand Down Expand Up @@ -621,10 +621,10 @@
"match": "\\b([a-zA-Z0-9_-]+)(\\s?=)",
"captures": {
"1": {
"name": "variable.parameter.name.handlebars"
"name": "variable.parameter.name.ember-handlebars"
},
"2": {
"name": "punctuation.definition.expression.handlebars"
"name": "punctuation.definition.expression.ember-handlebars"
}
},
"patterns": []
Expand Down Expand Up @@ -885,12 +885,12 @@
]
},
"html-comment": {
"name": "comment.block.html.handlebars",
"name": "comment.block.html.ember-handlebars",
"begin": "<!--",
"end": "--\\s*>",
"captures": {
"0": {
"name": "punctuation.definition.comment.html.handlebars"
"name": "punctuation.definition.comment.html.ember-handlebars"
}
},
"patterns": [
Expand All @@ -899,7 +899,7 @@
},
{
"match": "--",
"name": "invalid.illegal.bad-comments-or-CDATA.html.handlebars"
"name": "invalid.illegal.bad-comments-or-CDATA.html.ember-handlebars"
}
]
},
Expand Down Expand Up @@ -953,7 +953,7 @@
]
},
"component-tag": {
"name": "meta.tag.any.handlebars",
"name": "meta.tag.any.ember-handlebars",
"begin": "(<\\/?)(@|this.)?([a-zA-Z0-9-\\$:\\.]+)\\b",
"beginCaptures": {
"1": {
Expand Down Expand Up @@ -1001,14 +1001,14 @@
]
},
"html-tag": {
"name": "meta.tag.any.handlebars",
"name": "meta.tag.any.ember-handlebars",
"begin": "(<\\/?)([a-z0-9-]+)(?!\\.|:)\\b",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag"
},
"2": {
"name": "entity.name.tag.html.handlebars"
"name": "entity.name.tag.html.ember-handlebars"
}
},
"end": "(\\/?)(>)",
Expand All @@ -1030,7 +1030,7 @@
"match": "\\s(@[a-zA-Z0-9:_.-]+)(=)?",
"captures": {
"1": {
"name": "entity.other.attribute-name.handlebars.argument",
"name": "entity.other.attribute-name.ember-handlebars.argument",
"patterns": [
{
"name": "markup.italic",
Expand All @@ -1039,15 +1039,15 @@
]
},
"2": {
"name": "punctuation.separator.key-value.html.handlebars"
"name": "punctuation.separator.key-value.html.ember-handlebars"
}
}
},
"html-attribute": {
"match": "\\s([a-zA-Z0-9:_.-]+)(=)?",
"captures": {
"1": {
"name": "entity.other.attribute-name.handlebars",
"name": "entity.other.attribute-name.ember-handlebars",
"patterns": [
{
"name": "markup.bold",
Expand All @@ -1056,26 +1056,26 @@
]
},
"2": {
"name": "punctuation.separator.key-value.html.handlebars"
"name": "punctuation.separator.key-value.html.ember-handlebars"
}
}
},
"entities": {
"patterns": [
{
"name": "constant.character.entity.html.handlebars",
"name": "constant.character.entity.html.ember-handlebars",
"match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
"captures": {
"1": {
"name": "punctuation.definition.entity.html.handlebars"
"name": "punctuation.definition.entity.html.ember-handlebars"
},
"3": {
"name": "punctuation.definition.entity.html.handlebars"
"name": "punctuation.definition.entity.html.ember-handlebars"
}
}
},
{
"name": "invalid.illegal.bad-ampersand.html.handlebars",
"name": "invalid.illegal.bad-ampersand.html.ember-handlebars",
"match": "&"
}
]
Expand Down
6 changes: 3 additions & 3 deletions syntaxes/inline-hbs.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"include": "source.ts#template-substitution-element"
},
{
"include": "text.html.handlebars"
"include": "text.html.ember-handlebars"
}
]
},
Expand Down Expand Up @@ -84,7 +84,7 @@
},
"patterns": [
{
"include": "text.html.handlebars"
"include": "text.html.ember-handlebars"
}
]
}
Expand Down Expand Up @@ -132,7 +132,7 @@
},
"patterns": [
{
"include": "text.html.handlebars"
"include": "text.html.ember-handlebars"
}
]
},
Expand Down
Loading

0 comments on commit 01e7c35

Please sign in to comment.