Skip to content

Commit daad014

Browse files
committed
[html] add handlebars
1 parent 1f6815a commit daad014

9 files changed

Lines changed: 3149 additions & 410 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
2+
[{
3+
"name": "daaain/Handlebars",
4+
"version": "0.0.0",
5+
"license": "MIT",
6+
"repositoryURL": "https://github.com/daaain/Handlebars"
7+
}]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"comments": {
3+
"blockComment": [ "<!--", "-->" ]
4+
},
5+
"brackets": [
6+
["<!--", "-->"],
7+
["<", ">"],
8+
["{{", "}}"]
9+
],
10+
"autoClosingPairs": [
11+
{ "open": "{", "close": "}"},
12+
{ "open": "[", "close": "]"},
13+
{ "open": "(", "close": ")" },
14+
{ "open": "'", "close": "'" },
15+
{ "open": "\"", "close": "\"" },
16+
{ "open": "<", "close": ">" }
17+
],
18+
"surroundingPairs": [
19+
{ "open": "'", "close": "'" },
20+
{ "open": "\"", "close": "\"" },
21+
{ "open": "<", "close": ">" }
22+
]
23+
}

extensions/handlebars/package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "handlebars",
3+
"version": "0.1.0",
4+
"publisher": "vscode",
5+
"engines": {
6+
"vscode": "0.10.x"
7+
},
8+
"scripts": {
9+
"update-grammar": "node ../../build/npm/update-grammar.js daaain/Handlebars grammars/Handlebars.json ./syntaxes/Handlebars.json"
10+
},
11+
"contributes": {
12+
"languages": [{
13+
"id": "handlebars",
14+
"extensions": [ ".handlebars", ".hbs"],
15+
"aliases": [ "Handlebars", "handlebars" ],
16+
"mimetypes": ["text/x-handlebars-template"]
17+
}],
18+
"grammars": [{
19+
"language": "handlebars",
20+
"scopeName": "text.html.handlebars",
21+
"path": "./syntaxes/Handlebars.json"
22+
}]
23+
}
24+
}

0 commit comments

Comments
 (0)