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?(~B\"\"\")$",
|
|
|
|
"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": "~B\\\"",
|
|
|
|
"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": "~B\\[",
|
|
|
|
"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": "~B\\(",
|
|
|
|
"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": "~B\\{",
|
|
|
|
"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?(~j\"\"\")$",
|
|
|
|
"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": "~j\\\"",
|
|
|
|
"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": "~j\\[",
|
|
|
|
"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": "~j\\(",
|
|
|
|
"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": "~j\\{",
|
|
|
|
"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?(~t\"\"\")",
|
|
|
|
"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": "~t\\\"",
|
|
|
|
"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": "~t\\[",
|
|
|
|
"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": "~t\\(",
|
|
|
|
"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": "~t\\{",
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|