Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

added elixir syntaxes #2325

Merged
merged 1 commit into from Jun 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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
13 changes: 13 additions & 0 deletions browser/src/Services/Configuration/DefaultConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,19 @@ const BaseConfiguration: IConfigurationValues = {
),
"language.css.tokenRegex": "[$_a-zA-Z0-9-]",

"language.elixir.textMateGrammar": {
".ex": path.join(__dirname, "extensions", "elixir", "syntaxes", "elixir.tmLanguage.json"),
".exs": path.join(__dirname, "extensions", "elixir", "syntaxes", "elixir.tmLanguage.json"),
".eex": path.join(__dirname, "extensions", "elixir", "syntaxes", "eex.tmLanguage.json"),
".html.eex": path.join(
__dirname,
"extensions",
"elixir",
"syntaxes",
"html(eex).tmLanguage.json",
),
},

"language.less.languageServer.command": cssLanguageServerPath,
"language.less.languageServer.arguments": ["--stdio"],
"language.less.textMateGrammar": path.join(
Expand Down
41 changes: 41 additions & 0 deletions extensions/elixir/syntaxes/eex.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"fileTypes": ["eex"],
"name": "EEx",
"patterns": [
{
"begin": "<%+#",
"captures": {
"0": {
"name": "punctuation.definition.comment.eex"
}
},
"end": "%>",
"name": "comment.block.eex"
},
{
"begin": "<%+(?!>)[-=]*",
"captures": {
"0": {
"name": "punctuation.section.embedded.elixir"
}
},
"end": "-?%>",
"name": "source.elixir.embedded",
"patterns": [
{
"captures": {
"1": {
"name": "punctuation.definition.comment.elixir"
}
},
"match": "(#).*?(?=-?%>)",
"name": "comment.line.number-sign.elixir"
},
{
"include": "source.elixir"
}
]
}
],
"scopeName": "text.elixir"
}
Loading