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

Commit

Permalink
added elixir syntaxes (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colby DeHart authored and akinsho committed Jun 28, 2018
1 parent fd7ac52 commit 1462bf7
Show file tree
Hide file tree
Showing 4 changed files with 2,399 additions and 0 deletions.
13 changes: 13 additions & 0 deletions browser/src/Services/Configuration/DefaultConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,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

0 comments on commit 1462bf7

Please sign in to comment.