Skip to content

Commit 0009a68

Browse files
committed
113: Make Language IDs compliant
This changes the language IDs of eex and HTML eex to be compliant with the new identifier guidelines in vscode.
1 parent bd64849 commit 0009a68

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
"homepage": "https://github.com/fr1zle/vscode-elixir",
2222
"categories": ["Languages"],
2323
"activationEvents": ["onLanguage:elixir"],
24-
"emmet.syntaxProfiles": {
25-
"HTML (Eex)": "html"
26-
},
24+
"emmet.includeLanguages": { "html_eex": "html" },
2725
"contributes": {
2826
"languages": [
2927
{
@@ -33,13 +31,13 @@
3331
"configuration": "./elixir.configuration.json"
3432
},
3533
{
36-
"id": "Eex",
37-
"aliases": ["Eex", "eex"],
34+
"id": "eex",
35+
"aliases": ["Embedded Elixir", "eex"],
3836
"extensions": [".eex"]
3937
},
4038
{
41-
"id": "HTML (Eex)",
42-
"aliases": ["HTML (Eex)"],
39+
"id": "html-eex",
40+
"aliases": ["HTML (Embedded Elixir)"],
4341
"extensions": [".html.eex"],
4442
"configuration": "./html.eex.configuration.json"
4543
}
@@ -51,14 +49,14 @@
5149
"path": "./syntaxes/elixir.json"
5250
},
5351
{
54-
"language": "Eex",
52+
"language": "eex",
5553
"scopeName": "text.elixir",
5654
"path": "./syntaxes/eex.json"
5755
},
5856
{
59-
"language": "HTML (Eex)",
57+
"language": "html-eex",
6058
"scopeName": "text.html.elixir",
61-
"path": "./syntaxes/html (eex).json"
59+
"path": "./syntaxes/html_eex.json"
6260
}
6361
],
6462
"snippets": [

syntaxes/eex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"fileTypes": ["eex"],
3-
"name": "EEx",
3+
"name": "eex",
44
"patterns": [
55
{
66
"begin": "<%+#",

syntaxes/html (eex).json renamed to syntaxes/html_eex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|<!--(?!.*-->)\n\t\t|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n\t\t)",
55
"foldingStopMarker":
66
"(?x)\n\t\t(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>\n\t\t|^\\s*-->\n\t\t|(^|\\s)\\}\n\t\t)",
7-
"name": "HTML (EEx)",
7+
"name": "html_eex",
88
"patterns": [
99
{
1010
"include": "text.elixir"

0 commit comments

Comments
 (0)