vscode-cinder/elixir-cinder.json

386 lines
8.4 KiB
JSON
Raw Permalink Normal View History

2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"scopeName": "source.elixir.cinder",
"injectionSelector": "L:source.elixir",
"name": "elixir-cinder",
"patterns": [
{
"comment": "Handlebars markdown fragment",
"name": "text.html.handlebars",
"begin": "\\s?(```(handlebars|hbs))$",
"beginCaptures": {
"0": {
"name": "comment.documentation.heredoc.elixir"
}
},
"end": "^\\s*?```$",
"endCaptures": {
"0": {
"name": "comment.documentation.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "text.html.handlebars"
}
]
},
{
"comment": "Handlebars sigil with heredoc (double quotes)",
"name": "text.html.handlebars",
"begin": "\\s?(~HB\"\"\")$",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "^\\s*(\"\"\"[a-z]*)",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "text.html.handlebars"
}
]
},
{
"comment": "Handlebars sigil with double quotes",
"name": "text.html.handlebars",
"begin": "~HB\\\"",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\\"[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "text.html.handlebars"
}
]
},
{
"comment": "Handlebars sigil with square brackets",
"name": "text.html.handlebars",
"begin": "~HB\\[",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\][a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "text.html.handlebars"
}
]
},
{
"comment": "Handlebars sigil with parentheses",
"name": "text.html.handlebars",
"begin": "~HB\\(",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\)[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "text.html.handlebars"
}
]
},
{
"comment": "Handlebars sigil with curly braces",
"name": "text.html.handlebars",
"begin": "~HB\\{",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\}[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "text.html.handlebars"
}
]
},
{
"comment": "JavaScript markdown fragment",
"name": "source.js",
"begin": "\\s?(```(js|javascript))$",
"beginCaptures": {
"0": {
"name": "comment.documentation.heredoc.elixir"
}
},
"end": "^\\s*?```$",
"endCaptures": {
"0": {
"name": "comment.documentation.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.js"
}
]
},
{
"comment": "JavaScript sigil with heredoc (double quotes)",
"name": "source.js",
"begin": "\\s?(~JS\"\"\")$",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "^\\s*(\"\"\"[a-z]*)",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.js"
}
]
},
{
"comment": "JavaScript sigil with double quotes",
"name": "source.js",
"begin": "~JS\\\"",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\\"[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.js"
}
]
},
{
"comment": "JavaScript sigil with square brackets",
"name": "source.js",
"begin": "~JS\\[",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\][a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.js"
}
]
},
{
"comment": "JavaScript sigil with parentheses",
"name": "source.js",
"begin": "~JS\\(",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\)[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.js"
}
]
},
{
"comment": "JavaScript sigil with curly brackets",
"name": "source.js",
"begin": "~JS\\{",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\}[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.js"
}
]
},
{
"comment": "TypeScript markdown fragment",
"name": "text.html.handlebars",
"begin": "\\s?(```(ts|typescript))$",
"beginCaptures": {
"0": {
"name": "comment.documentation.heredoc.elixir"
}
},
"end": "^\\s*?```$",
"endCaptures": {
"0": {
"name": "comment.documentation.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.ts"
}
]
},
{
"comment": "TypeScript sigil with heredoc (double quotes)",
"name": "source.ts",
"begin": "\\s?(~TS\"\"\")",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "^\\s*(\"\"\"[a-z]*)$",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.ts"
}
]
},
{
"comment": "TypeScript sigil with double quotes",
"name": "source.ts",
"begin": "~TS\\\"",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\\"[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.ts"
}
]
},
{
"comment": "TypeScript sigil with square brackets",
"name": "source.ts",
"begin": "~TS\\[",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\][a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.ts"
}
]
},
{
"comment": "TypeScript sigil with parentheses",
"name": "source.ts",
"begin": "~TS\\(",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\)[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "source.ts"
}
]
},
{
"comment": "TypeScript sigil with curly brackets",
"name": "source.ts",
"begin": "~TS\\{",
2023-02-20 12:14:40 +13:00
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\}[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
2023-02-17 17:21:30 +13:00
{
2023-02-20 12:14:40 +13:00
"include": "source.ts"
}
]
}
]
}