fix: small fix to heredoc endCaptures.

This commit is contained in:
James Harton 2023-02-20 12:14:40 +13:00
parent 21a0d9222d
commit a46f86088e
2 changed files with 417 additions and 378 deletions

View file

@ -2,7 +2,8 @@
"scopeName": "source.elixir.cinder",
"injectionSelector": "L:source.elixir",
"name": "elixir-cinder",
"patterns": [{
"patterns": [
{
"comment": "Handlebars markdown fragment",
"name": "text.html.handlebars",
"begin": "\\s?(```(handlebars|hbs))$",
@ -17,9 +18,11 @@
"name": "comment.documentation.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "text.html.handlebars"
}]
}
]
},
{
"comment": "Handlebars sigil with heredoc (double quotes)",
@ -30,15 +33,17 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "^\\s*(\"\"\"[a-z]*)$",
"end": "^\\s*(\"\"\"[a-z]*)",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "text.html.handlebars"
}]
}
]
},
{
"comment": "Handlebars sigil with double quotes",
@ -55,9 +60,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "text.html.handlebars"
}]
}
]
},
{
"comment": "Handlebars sigil with square brackets",
@ -74,9 +81,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "text.html.handlebars"
}]
}
]
},
{
"comment": "Handlebars sigil with parentheses",
@ -93,9 +102,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "text.html.handlebars"
}]
}
]
},
{
"comment": "Handlebars sigil with curly braces",
@ -112,9 +123,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "text.html.handlebars"
}]
}
]
},
{
"comment": "JavaScript markdown fragment",
@ -131,9 +144,11 @@
"name": "comment.documentation.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.js"
}]
}
]
},
{
"comment": "JavaScript sigil with heredoc (double quotes)",
@ -144,15 +159,17 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"end": "^\\s*(\"\"\"[a-z]*)$",
"end": "^\\s*(\"\"\"[a-z]*)",
"endCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.js"
}]
}
]
},
{
"comment": "JavaScript sigil with double quotes",
@ -169,9 +186,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.js"
}]
}
]
},
{
"comment": "JavaScript sigil with square brackets",
@ -188,9 +207,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.js"
}]
}
]
},
{
"comment": "JavaScript sigil with parentheses",
@ -207,9 +228,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.js"
}]
}
]
},
{
"comment": "JavaScript sigil with curly brackets",
@ -226,9 +249,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.js"
}]
}
]
},
{
"comment": "TypeScript markdown fragment",
@ -245,14 +270,16 @@
"name": "comment.documentation.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.ts"
}]
}
]
},
{
"comment": "TypeScript sigil with heredoc (double quotes)",
"name": "source.ts",
"begin": "\\s?(~t\"\"\")$",
"begin": "\\s?(~t\"\"\")",
"beginCaptures": {
"0": {
"name": "string.quoted.double.heredoc.elixir"
@ -264,9 +291,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.ts"
}]
}
]
},
{
"comment": "TypeScript sigil with double quotes",
@ -283,9 +312,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.ts"
}]
}
]
},
{
"comment": "TypeScript sigil with square brackets",
@ -302,9 +333,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.ts"
}]
}
]
},
{
"comment": "TypeScript sigil with parentheses",
@ -321,9 +354,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.ts"
}]
}
]
},
{
"comment": "TypeScript sigil with curly brackets",
@ -340,9 +375,11 @@
"name": "string.quoted.double.heredoc.elixir"
}
},
"patterns": [{
"patterns": [
{
"include": "source.ts"
}]
}
]
}
]
}

View file

@ -2,7 +2,7 @@
"name": "cinder",
"displayName": "Cinder: A framework for web applications in Elixir",
"description": "Syntax highlighting support for Cinder/Elixir",
"version": "0.1.0",
"version": "0.1.1",
"author": "James Harton",
"publisher": "jimsy",
"license": "HL3-FULL",
@ -17,7 +17,8 @@
"Programming Languages"
],
"contributes": {
"grammars": [{
"grammars": [
{
"path": "elixir-cinder.json",
"scopeName": "source.elixir.cinder",
"injectTo": [
@ -28,6 +29,7 @@
"meta.embedded.inline.js": "js",
"meta.embedded.inline.ts": "ts"
}
}]
}
]
}
}