vscode-cinder/elixir-cinder.json

385 lines
8.4 KiB
JSON

{
"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": [
{
"include": "text.html.handlebars"
}
]
},
{
"comment": "Handlebars sigil with heredoc (double quotes)",
"name": "text.html.handlebars",
"begin": "\\s?(~HB\"\"\")$",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "^\\s*(\"\"\"[a-z]*)",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "text.html.handlebars"
}
]
},
{
"comment": "Handlebars sigil with double quotes",
"name": "text.html.handlebars",
"begin": "~HB\\\"",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\\"[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "text.html.handlebars"
}
]
},
{
"comment": "Handlebars sigil with square brackets",
"name": "text.html.handlebars",
"begin": "~HB\\[",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\][a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "text.html.handlebars"
}
]
},
{
"comment": "Handlebars sigil with parentheses",
"name": "text.html.handlebars",
"begin": "~HB\\(",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\)[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "text.html.handlebars"
}
]
},
{
"comment": "Handlebars sigil with curly braces",
"name": "text.html.handlebars",
"begin": "~HB\\{",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\}[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"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": [
{
"include": "source.js"
}
]
},
{
"comment": "JavaScript sigil with heredoc (double quotes)",
"name": "source.js",
"begin": "\\s?(~JS\"\"\")$",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "^\\s*(\"\"\"[a-z]*)",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "source.js"
}
]
},
{
"comment": "JavaScript sigil with double quotes",
"name": "source.js",
"begin": "~JS\\\"",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\\"[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "source.js"
}
]
},
{
"comment": "JavaScript sigil with square brackets",
"name": "source.js",
"begin": "~JS\\[",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\][a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "source.js"
}
]
},
{
"comment": "JavaScript sigil with parentheses",
"name": "source.js",
"begin": "~JS\\(",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\)[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "source.js"
}
]
},
{
"comment": "JavaScript sigil with curly brackets",
"name": "source.js",
"begin": "~JS\\{",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\}[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"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": [
{
"include": "source.ts"
}
]
},
{
"comment": "TypeScript sigil with heredoc (double quotes)",
"name": "source.ts",
"begin": "\\s?(~TS\"\"\")",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "^\\s*(\"\"\"[a-z]*)$",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "source.ts"
}
]
},
{
"comment": "TypeScript sigil with double quotes",
"name": "source.ts",
"begin": "~TS\\\"",
"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 square brackets",
"name": "source.ts",
"begin": "~TS\\[",
"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 parentheses",
"name": "source.ts",
"begin": "~TS\\(",
"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\\{",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "\\}[a-z]*",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [
{
"include": "source.ts"
}
]
}
]
}