Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
"language": "HTML (Eex)",
"scopeName": "text.html.elixir",
"path": "./syntaxes/html (eex).json"
},
{
"scopeName": "markdown.elixir.codeblock",
"path": "./syntaxes/codeblock.json",
"injectTo": ["text.html.markdown"],
"embeddedLanguages": {
"meta.embedded.block.elixir": "elixir"
}
}
],
"snippets": [
Expand Down
28 changes: 28 additions & 0 deletions syntaxes/codeblock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"fileTypes": [],
"injectionSelector": "L:markup.fenced_code.block.markdown",
"patterns": [
{
"include": "#plantuml-code-block"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is this "plantuml" comming from?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that "plantuml". It was from another snippet. I have pushed an update that does not have it.

}
],
"repository": {
"plantuml-code-block": {
"begin": "elixir(\\s+[^`~]*)?$",
"end": "(^|\\G)(?=\\s*[`~]{3,}\\s*$)",
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
"contentName": "meta.embedded.block.elixir",
"patterns": [
{
"include": "source.elixir"
}
]
}
]
}
},
"scopeName": "markdown.elixir.codeblock"
}