kjelsrud.dev/node_modules/shiki/languages/glimmer-ts.tmLanguage.json
2023-07-19 21:31:30 +02:00

98 lines
2.5 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "glimmer-ts",
"scopeName": "source.gts",
"patterns": [
{
"include": "source.ts"
}
],
"injections": {
"L:source.gts -comment": {
"patterns": [
{
"name": "meta.js.embeddedTemplateWithoutArgs",
"begin": "\\s*(<)(template)\\s*(>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
},
"3": {
"name": "punctuation.definition.tag.html"
}
},
"end": "(</)(template)(>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
},
"3": {
"name": "punctuation.definition.tag.html"
}
},
"patterns": [
{
"include": "text.html.handlebars"
}
]
},
{
"name": "meta.js.embeddedTemplateWithArgs",
"begin": "(<)(template)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
}
},
"end": "(</)(template)(>)",
"endCaptures": {
"1": {
"name": "punctuation.definition.tag.html"
},
"2": {
"name": "entity.name.tag.other.html"
},
"3": {
"name": "punctuation.definition.tag.html"
}
},
"patterns": [
{
"begin": "(?<=\\<template)",
"end": "(?=\\>)",
"patterns": [
{
"include": "text.html.handlebars#tag-stuff"
}
]
},
{
"begin": "(>)",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.end.js"
}
},
"end": "(?=</template>)",
"contentName": "meta.html.embedded.block",
"patterns": [
{
"include": "text.html.handlebars"
}
]
}
]
}
]
}
}
}